Jump to content
Sign in to follow this  
Helge

GUICtrlGetState/GUIcreate questions

Recommended Posts

Helge

I don't want to create a topic just for this, so here's two questions for jpm :

GUICtrlGetState

I noticed that the helpfile said that "controlID" was optional, so I tested it.

AutoIt didn't complain, but it made me wonder what exactly does without a cid.

GUICreate

This idea would most likely break every GUI-script there is that uses styles

on the GUI itself, but shouldnt the 'left'- and 'top'-parameters follow the same

rules as WinMove ? You know, -1 versus Default ?

Share this post


Link to post
Share on other sites
jpm

I don't want to create a topic just for this, so here's two questions for jpm :

GUICtrlGetState

I noticed that the helpfile said that "controlID" was optional, so I tested it.

AutoIt didn't complain, but it made me wonder what exactly does without a cid.

GUICreate

This idea would most likely break every GUI-script there is that uses styles

on the GUI itself, but shouldnt the 'left'- and 'top'-parameters follow the same

rules as WinMove ? You know, -1 versus Default ?

GUICtrlGetState() use the same rule as other GUICtrl... i.e. the previous defined GUICtrlCreate... as stated in the doc. Perhaps not very useful but coherent with other functions.

GUICreate is a little different than WinMOve as it is creating the window so the -1 was defined well before the introduction of the default keyword that could have been used. Not sure it would useful to change it now. :)

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  

×