Sign in to follow this  
Followers 0
Rishav

Conceptual question about GUICtrlGetState (CLOSED)

3 posts in this topic

#1 ·  Posted (edited)

When I do GUICtrlGetState($combo) for a combo field, the values i get is 80 or 144 depending on whether the field is enabled or disabled.

Why these numbers?

the hepfile says

"Success: Returns the state. See GUICtrlSetState for values.

Failure: Returns -1 if control is not defined. "

But in the page for GUICtrlSetState , no number definitions are provided. I guess I was expecting something like a string as output.

regards

Rishav

Edited by Rishav

Share this post


Link to post
Share on other sites



When I do GUICtrlGetState($combo) for a combo field, the values i get is 80 or 144 depending on whether the field is enabled or disabled.

Why these numbers?

the hepfile says

"Success: Returns the state. See GUICtrlSetState for values.

Failure: Returns -1 if control is not defined. "

But in the page for GUICtrlSetState , no number definitions are provided. I guess I was expecting something like a string as output.

regards

Rishav

Hi,

just open GUIConstantsEx.au3 in SciTe and you will see:

80 = Const $GUI_SHOW + Const $GUI_ENABLE = 16 + 64

144 = Const GUI_SHOW + Const $GUI_DISBALE = 16 + 128

;-))

Stefan

Share this post


Link to post
Share on other sites

ugh.... that makes me feel stupid.... o.0

thanks for the help. PS. didn't you reply in my other thread?

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