Jump to content
Sign in to follow this  
bggashnik

no minimize option in GUI

Recommended Posts

bggashnik

what should be my GUICreate parameters to create GUI without minimize and maximize option,just with cancel option.Please help :P

Share this post


Link to post
Share on other sites
BrettF

#include <GUIConstants.au3>

$Form1 = GUICreate("AForm1", 633, 447, 193, 115, BitOR($WS_SYSMENU, $WS_CAPTION, $WS_POPUPWINDOW, $WS_BORDER, $WS_CLIPSIBLINGS))
GUISetState(@SW_SHOW)

While 1
    $msg = GUIGetMsg()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            Exit
    EndSelect
WEnd

Share this post


Link to post
Share on other sites
Madza91

Or only: GUICreate("AForm1", 633, 447, 193, 115,$WS_SYSMENU)

:P


[quote name='dbzfanatic' post='609696' date='Nov 26 2008, 08:46 AM']This is a help forum not a "write this for me" forum.[/quote](Sorry for bad English) :)

Share this post


Link to post
Share on other sites
dani

Or only: GUICreate("AForm1", 633, 447, 193, 115,$WS_SYSMENU)

:P

Or the, imho MUCH smoother and prettier etc, "toolwindow":

#include <GUIConstants.au3>

GUICreate("AForm1", 633, 447, 193, 115, $WS_SYSMENU, $WS_EX_TOOLWINDOW)
GUIsetstate()
while 1
WEnd

Just realize this won't show up in your taskbar and alt+tab menu this way.

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  

×