Problem with RadioGroup.ControlCount in Delphi 2010

前端 未结 1 535
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-27 04:03

I\'d like to set RadioButton properties in runtime in procedure InitRadioGroup(). It fails because RadioGroup.ControlCount is 0, although there are 3 RadioButtons in RadioGroup

相关标签:
1条回答
  • 2021-01-27 04:07

    I assume that the RadioGroup is not visible when your procedure is called. So the RadioButtons may not be created then.

    A call to RadioGroup.HandleNeeded should fix this for you.

    0 讨论(0)
提交回复
热议问题