dufran3 Posted June 1, 2007 Posted June 1, 2007 I have a gui, with checkboxes. Currently, I have an array, and am creating the checkboxes by stepping through each item in the array. For $i = 0 to $aOtherSize - 1 $OtherCtrl[$i] = GUICtrlCreateCheckbox('', $nLeft, $nTop, 15, 20) If $aOther[$i][2] == 1 Then GUICtrlSetState ( -1, $GUI_CHECKED) $OtherXSkinID[$i] = GUICtrlCreateLabel($aOther[$i][0], $nLeft + 20, $nTop +3, $nWidth, $nHeight) $nTop += 22 Next When the GUI appears, I can click on the checkbox, and it checks and unchecks accordingly. How do I make it so that I can click the checkbox or the associated label...ya know?
PsaltyDS Posted June 1, 2007 Posted June 1, 2007 I have a gui, with checkboxes. Currently, I have an array, and am creating the checkboxes by stepping through each item in the array. For $i = 0 to $aOtherSize - 1 $OtherCtrl[$i] = GUICtrlCreateCheckbox('', $nLeft, $nTop, 15, 20) If $aOther[$i][2] == 1 Then GUICtrlSetState ( -1, $GUI_CHECKED) $OtherXSkinID[$i] = GUICtrlCreateLabel($aOther[$i][0], $nLeft + 20, $nTop +3, $nWidth, $nHeight) $nTop += 22 NextoÝ÷ Ùh^Ø^B¦®Âjw%É(Ø^rº1jwbµÈ^rKÛ§rÆrÝx%Èz0v&jG¢¶Ê-«Hq©Ü'$¶ç$nh®Ø^jË(r&yÙZmérjIèÃú®¢×¢}ý¶f¤z+Z±êZ«^¦ÞǶ{h~Ø^rº1{-y§ZºÚ"µÍÜ ÌÍÚHHÈ ÌÍØSÝÚ^HHBIÌÍÓÝÝÉÌÍÚWHHÕRPÝÜX]PÚXÚØÞ ÌÍØSÝÉÌÍÚWVÌK ÌÍÛY ÌÍÛÜ ÌÍÛÚY ÈMK BRY ÌÍØSÝÉÌÍÚWVÌHOHH[ÕRPÝÙ]Ý]H LK ÌÍÑÕRWÐÒPÒÑQ BIÌÍÛÜ ÏH^ Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
PsaltyDS Posted June 1, 2007 Posted June 1, 2007 any reason to do it one way or the other???Maybe... "...so that I can click the checkbox or the associated label...ya know?" Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
dufran3 Posted June 1, 2007 Author Posted June 1, 2007 I didn't know if there was a problem doing it one way or the other...ya know?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now