Lord_Doominik Posted July 10, 2005 Share Posted July 10, 2005 how could i deactivate a button with $BS_BITMAP, so, that you see the bitmap, but can't click at it? i thought about doing it with creating a picture, and if its active a button and hide the picture... but is there another way? a better way? Link to comment Share on other sites More sharing options...
Leprechaun Posted July 10, 2005 Share Posted July 10, 2005 Place this code right after the button creation. GuiCtrlSetState(-1, $GUI_DISABLE) Link to comment Share on other sites More sharing options...
Lord_Doominik Posted July 11, 2005 Author Share Posted July 11, 2005 that don't works... i thought too that it must work, but i asked here, cause i tested it and it don't worked... then is the button disabled, but the picture isn't shown too... then you only see teh grey and disabled button... Link to comment Share on other sites More sharing options...
Leprechaun Posted July 11, 2005 Share Posted July 11, 2005 Can I see the code? Link to comment Share on other sites More sharing options...
Lord_Doominik Posted July 11, 2005 Author Share Posted July 11, 2005 (edited) sure, i tryed it with this: $Cancel = GUICtrlCreateButton("Cancel", (@DesktopWidth-500)/2-142, 2, 40, 37, $BS_BITMAP) GUICtrlSetState($Cancel, $GUI_DISABLE) GUICtrlSetImage($Cancel, "Images\Cancel inactive.bmp") Edited July 11, 2005 by Lord_Doominik 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