Sign in to follow this  
Followers 0
HeidiR

Disable button on create

5 posts in this topic

Hi All,

I'm trying to disable a button during the create. However, the code below does NOT work.

$BUTTON3 = GUICtrlCreateButton("Test", 800, 40, 80, 20, -1, $GUI_DISABLE)

However, the following code after the create DOES disable the button as expected.

GUICtrlSetState($BUTTON3, $GUI_DISABLE)

Is it not possible to disable a button during the create? Maybe I'm missing something simple?


HeidiRFind free applications, code examples and more on my site at:http://heidisdownloads.com/

Share this post


Link to post
Share on other sites



$BUTTON3 = GUICtrlCreateButton("Test", 800, 40, 80, 20, -1, $GUI_DISABLE)

$GUI_DISABLE is a state not a exstyle.

No it can not be disabled during creation.

Share this post


Link to post
Share on other sites

$GUI_DISABLE is a state not a exstyle.

No it can not be disabled during creation.

Thanks for the clarification!


HeidiRFind free applications, code examples and more on my site at:http://heidisdownloads.com/

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