![]() |
|
|
#1
|
|||
|
|||
|
хочу сыметировать нажатие на checkbox, делаю так:
x := checkbox1.ComponentIndex; with (form1.Components[x] as Tcheckbox) do begin click; end; запускаю, не кликает. В чем проблема? И как ее решить? |
|
#2
|
||||
|
||||
|
А если так?
Код:
(form1.Components[x] as Tcheckbox).Checked := not (form1.Components[x] as Tcheckbox).Checked; |
|
#3
|
||||
|
||||
|
TCheckBox(form1.Components[x])
|