HeidiR Posted December 23, 2008 Share Posted December 23, 2008 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/ Link to comment Share on other sites More sharing options...
Kip Posted December 23, 2008 Share Posted December 23, 2008 $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. MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
HeidiR Posted December 23, 2008 Author Share Posted December 23, 2008 $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/ Link to comment Share on other sites More sharing options...
rasim Posted December 24, 2008 Share Posted December 24, 2008 $GUI_DISABLE is a state not a exstyle. No it can not be disabled during creation.It can: #include <GuiConstantsEx.au3> #include <WindowsConstants.au3> $hGUI = GUICreate("Test", 200, 100) $cButton = GUICtrlCreateButton("Test", 50, 50, 75, 23, $WS_DISABLED) GUISetState() Do Until GUIGetMsg() = $GUI_EVENT_CLOSE Link to comment Share on other sites More sharing options...
Kip Posted December 24, 2008 Share Posted December 24, 2008 I knew there was some kind of style for that. Damn it MailSpons: Fake SMTP server for safe email testing Dutch postcode & address API. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now