Sign in to follow this  
Followers 0
Tagor

Popup without min/max/close button

7 posts in this topic

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



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

#3 ·  Posted (edited)

Is there a way to have a title bar?

Edited by Tagor

Share this post


Link to post
Share on other sites

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

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

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

<{POST_SNAPBACK}>

GUIDelete() ?

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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  
Followers 0