ACalcutt Posted August 20, 2005 Posted August 20, 2005 can GUICtrlSetState be used to disable a group of controls? Andrew Calcutt Http://www.Vistumbler.net Http://www.TechIdiots.net Its not an error, its a undocumented feature
therks Posted August 21, 2005 Posted August 21, 2005 Heh, you're mean LxP 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. My AutoIt Stuff | My Github
LxP Posted August 21, 2005 Posted August 21, 2005 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!
ACalcutt Posted August 21, 2005 Author Posted August 21, 2005 nope...it didn't work...it just disabled the group and not its contents Andrew Calcutt Http://www.Vistumbler.net Http://www.TechIdiots.net Its not an error, its a undocumented feature
quaizywabbit Posted August 22, 2005 Posted August 22, 2005 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
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