Jump to content

Conceptual question about GUICtrlGetState (CLOSED)


Recommended Posts

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
Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...