Jump to content
Sign in to follow this  
Tagor

Popup without min/max/close button

Recommended Posts

Tagor

Is it possible to create a popup without min/max/close buttons. I was unable to find this in the manual. I searched in GUI Control Styles without luck.

Share this post


Link to post
Share on other sites
GaryFrost

look in the style for GuiCreate in the help file

#include <GuiConstants.au3>

If Not IsDeclared('WS_CLIPSIBLINGS') Then Global $WS_CLIPSIBLINGS = 0x04000000

GuiCreate("MyGUI", 392, 322,(@DesktopWidth-392)/2, (@DesktopHeight-322)/2 , $WS_POPUP)

$button = GUICtrlCreateButton("E&xit", 150, 280,100,20)
GuiSetState()
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case $msg = $button
        ExitLoop
    Case Else
    ;;;
    EndSelect
WEnd
Exit

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites
Tagor

Is there a way to have a title bar?

Edited by Tagor

Share this post


Link to post
Share on other sites
GaryFrost

GuiCreate("MyGUI", 392, 322,(@DesktopWidth-392)/2, (@DesktopHeight-322)/2 , $WS_POPUP+$WS_CAPTION)


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites
Tagor

Thanks a lot. Can you also tell me how to automatically close this window? Since winclose(title) kills the whole program.

Share this post


Link to post
Share on other sites
Jos

Thanks a lot. Can you also tell me how to automatically close this window? Since winclose(title) kills the whole program.

<{POST_SNAPBACK}>

GUIDelete() ?

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Tagor

Thank, that worked :).

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  

×