Sign in to follow this  
Followers 0
dufran3

Checkbox and labes (Check)

5 posts in this topic

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?

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

any reason to do it one way or the other???

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

I didn't know if there was a problem doing it one way or the other...ya know?

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0