Jump to content

Hide Close (X)


Recommended Posts

I would like to make a window and hide the X in the upper right corner.

Is that possible?

GuiCreate($ProgTitel, 370,145)

That´s what i'm using today. I looked into the help file, and try to find a style for it, but with no luck :D

Were ever i lay my script is my home...

Link to comment
Share on other sites

GUICreate("Test", 400,280, 200, 200, $WS_CAPTION)

Just do a GuiShow() when the box returns -3 (closed) to make it so that ALT-F4/ESC is ignored.

Thanks,

The first part is working perfectly, i also checked CyberSlugs other examples, wich was really good.

The second part, disable ALT+F4, is not really working. Or its me who does not get it correct.

This is what i had before:

GuiShow()

This is what i made now:

GuiShow(-3)

And that does not seem to work, i can still use ALT+F4 to close.

Were ever i lay my script is my home...

Link to comment
Share on other sites

  • Administrators

While 1
  $msg = GuiMsg()
  
  Select
    Case $msg = -3
      GuiShow()
    ...
    ...
  EndSelect
Wend

In other words, every time the Gui closes you just reopen it again.

Link to comment
Share on other sites

Thanks guys... It really helped alot :D

Now since you are so helpful, you might be able to give me command for:

"On top"

I need to program to be visible until click chose one of the buttons.

Were ever i lay my script is my home...

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
 Share

  • Recently Browsing   0 members

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