kgreer Posted January 31, 2013 Share Posted January 31, 2013 I'm trying to disable the entire form while a function is running. I can disable each control using guictrlsetstate(), but I also want to disable the minimize, maximize, and close buttion while the function is running. I tried using guictrlsetstate() on the form as well, but that did not work. Any thoughts? Link to comment Share on other sites More sharing options...
funkey Posted January 31, 2013 Share Posted January 31, 2013 Search for EnableMenuItem in forum Programming today is a race between software engineers striving tobuild bigger and better idiot-proof programs, and the Universetrying to produce bigger and better idiots.So far, the Universe is winning. Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted January 31, 2013 Share Posted January 31, 2013 Did you try GUISetState()? .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
kgreer Posted January 31, 2013 Author Share Posted January 31, 2013 GuiSetState(@SW_Disable,$winhandle) msgbox(262160,"","An error message") ;controls are reset GuiSetState(@SW_Enable,$winhandle) This works, but the form window will minimize itself after the msgbox is closed. I'm not sure what is causing that. I can counteract that by adding winsetontop(), but I don’t want to force the window to always be on top. 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