Jump to content
Sign in to follow this  

Buttons not working ?

Recommended Posts



Solved I was setting the GUISetState to @SW_HIDE from the start then using WinSetState to @SW_SHOW the window, so the GUI was Never set to show. I changed the GUISetState to @SW_SHOW and now when I hide and re show it everything works. So to bother you guys now.

I have made two programs both with gui's, now Ihave set a button on one when pressed it hides/shows the other one. I am using this

WinSetState("MainGUI", "", @SW_HIDE)
WInSetState("MainGUI", "", @SW_SHOW)

It works fine on hide and show but when it is re-activated from hide to show the buttons dont work anymore, the slider works fine.

Now I am using GUICtrlCreatePic for the buttons so they are pictures instead of GUICtrlCreateButton.

Any Ideas of what is happening here ?

Edited by NeedCoffee

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.