General information
Category:
Coding, syntax & commands
Title:
AddObject - Click Event
I need to programatically add objects to my form. Since they are checkboxes, I need to know when the user clicked on one or the other. I need a CLICKEVENT. I've tried every way I can think of. Help.
Thanks
Ecco
For nListNo = 1 to 2
THISFORM.ADDOBJECT(chkBox,'CheckBox')
cTemp = "THISFORM.ChkBox" + ALLTRIM(STR(nListNo )) + ".TOP"
&cTemp = 30+(60 * nListNo)
cTemp = "THISFORM.ChkBox" + ALLTRIM(STR(nListNo )) + ".LEFT"
&cTemp = 30
cTemp = "THISFORM.ChkBox" + ALLTRIM(STR(nListNo )) + ".HEIGHT"
&cTemp = 24
cTemp = "THISFORM.ChkBox" + ALLTRIM(STR(nListNo )) + ".WIDTH"
&cTemp = 24
cTemp = "THISFORM.ChkBox" + ALLTRIM(STR(nListNo )) + ".VISIBLE"
&cTemp = .T.
cTemp = "THISFORM.ChkBox" + ALLTRIM(STR(nListNo )) + ".caption"
&cTemp = ""
cTemp = "THISFORM.ChkBox" + ALLTRIM(STR(nListNo )) + ".Click"
&cTemp = "thisform.cbClick('2')"
Next nListNo
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only