Sign in to follow this  
Followers 0
bittware

GUICtrlGetState Return state

3 posts in this topic

Hello experts,

I use

If (GUICtrlGetState($Radio6) = $GUI_CHECKED) Then

to verify if this Radio6 has been checked or not.

But when I checked Radio6, GUICtrlGetState($Radio6) returns 80 which is not equal to $GUI_CHECKED(value of 1).

Could anyone explain it?

BRs,

bittware

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

GuiCtrlRead() = "Checkbox, Radio state of the button. See State table"

GuiCtrlGetState() = "As opposed to GUICtrlRead this function returns ONLY the state of a control enabled/disabled/hidden/show/dropaccepted"

Edited by KaFu

Share this post


Link to post
Share on other sites

As an addition to KaFu this should also be possible:

If GUICtrlRead($Radio6) = $GUI_CHECKED Then

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