Jump to content

How to remove the max/min box

Recommended Posts

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!
Link to comment
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

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...