Sign in to follow this  
Followers 0
Swimming_Bird

Controlling multiple controlids simutaniously

8 posts in this topic

#1 ·  Posted (edited)

I've got 6-12 controlids that i use $GUI_SHOW and $GUI_HIDE on this one group of controlIDs in many different places, is there any way i can group these IDs so i can just do GUICtrlSetState( $group , $GUI_SHOW )

Edited by Swimming_BIrd

Share this post


Link to post
Share on other sites



good question... i used this

For $dis = 1 To 9

GUICtrlSetState($Start_[$dis], $GUI_HIDE)

Next

hope it helps

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Coded directly into the browser, so untested :evil:

If StringInStr("|" & $cButton1 & "|" & $cButton2 & "|" & $cButton3 & "|","|" & $msg & "|") Then _
GUICtrlSetData($msg,"Clicked !")

Edit : Bug fixed :)

Edited by Helge

Share this post


Link to post
Share on other sites

good question... i used this

For $dis = 1 To 9

GUICtrlSetState($Start_[$dis], $GUI_HIDE)

Next

hope it helps

8)

<{POST_SNAPBACK}>

this is embarassing, i'm having a problem putting each of the gui items inside of an array :">

i think i may not be innitializing it propperly.

Share this post


Link to post
Share on other sites

For $dis = 1 To 9
GUICtrlSetState(Eval("Start_" & $dis), $GUI_HIDE)
Next

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

this is embarassing, i'm having a problem putting each of the gui items inside of an array  :">

i think i may not be innitializing it propperly.

<{POST_SNAPBACK}>

i put in these

Dim $Start_[10]

then

Start_[1] = GUICtrlCreate....

Start_[2] = GUICtrlCreate....

8)

Edited by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites

no, this is the error i get when i try to run it

C:\Documents and Settings\tatlas\Desktop\Signatures Autoit\prelim script.au3 (84) : ==> Variable used without being declared.:

$usin[1]= GUICtrlCreateInput ("", 80,185,35,20)

^ ERROR

Share this post


Link to post
Share on other sites

i put in these

Dim $Start_[10]

then

Start_[1] = GUICtrlCreate....

Start_[2] = GUICtrlCreate....

8)

<{POST_SNAPBACK}>

worked great :)

thanks

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