Jump to content
Sign in to follow this  
ACalcutt

disabling a group

Recommended Posts

LxP

Well, did it work for you? :whistle: Try it and let us know!

Share this post


Link to post
Share on other sites
therks

Heh, you're mean LxP :whistle:

Your best bet is to co-reference all the control handles into an array, and create a function that will run through that array and disable/enable all the controls.

Share this post


Link to post
Share on other sites
LxP

Oops, I think I am! :"> Time to get myself out of hot water:

I thought that perhaps ACalcutt had used GUICtrlCreateGroup() to house a group of controls and was wondering if a single GUICtrlSetState() call on that Group control would disable all 'children' controls within. (I know that this can be done with some other GUI-oriented programming languages like Delphi.)

My apologies ACalcutt and if you haven't tried this approach, it definitely might be worth a go. Do be sure to share your result with us if you do though! :whistle:

Share this post


Link to post
Share on other sites
quaizywabbit

you could create a Child window using GuiCreate() that 'zones off' the controls you wish to group disable/enable, then disable or enable the child window by itself. The only thing that's different using this approach is that the controls don't get 'greyed out'

they should be though, perhaps i'll suggest this to the dev's.


[u]Do more with pre-existing apps![/u]ANYGUIv2.8

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.