Jump to content
Sign in to follow this  

How to remove the max/min box

Recommended Posts


How do you remove or gray out the max/min box so the gui can't be made bigger /smaller ?

Share this post

Link to post
Share on other sites

If you do not specify a style when you call GUICreate, it uses 0x94CA0000 which makes the window not resizable. (Frame cannot be resized, maximize button is grayed-out, but you can still minimize and close.)

GuiCreate("Sample", 100, 100, 50, 50)

I have a partial list of useful GUI Window styles somewhere on my computer .... *Eventually* I hope to submit it for the documentation.

I'm not sure about disabling the minimize button. Valik or others probably know. Here's a workaround:

$title = "SampleFoo"
GuiCreate($title, 100, 100, 50, 50, 0x94CA0000)

While 1
   $msg = GuiMsg(0)
   If $msg = -3 Then Exit
   If $msg = -4 Then WinSetState($title,"",@SW_RESTORE)
Edited by CyberSlug

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post

Link to post
Share on other sites

Thank you , using 0x94CA0000 did the trick .

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.