Jump to content

Recommended Posts

Posted

I have been looking through the Gui Control Styles but i cant seem to find what i need, i am working with 2 different gui's that come out at different times i have all the coding i just cant find the right controls for them the first control has to be a thin border with no close max or min option then the second 1 needs to have close control but no max (min doesnt matter).

Posted

I have been looking through the Gui Control Styles but i cant seem to find what i need, i am working with 2 different gui's that come out at different times i have all the coding i just cant find the right controls for them the first control has to be a thin border with no close max or min option then the second 1 needs to have close control but no max (min doesnt matter).

for the first one there are two choices i made... other choices are available

#include <GUIConstants.au3>


GUICreate(" Type 1", 350, 340, 10, 10, $WS_POPUP + $WS_CAPTION)
GUICtrlCreateEdit("", 10, 10, 330, 280)

GUISetState()

GUICreate("Type 2", 350, 340, -1, -1, $WS_POPUP, $WS_EX_TOPMOST + $WS_EX_TOOLWINDOW)
GUICtrlCreateEdit("", 10, 10, 330, 280)
GUISetState()
While 1
    sleep(10)
WEnd

hope that helps

8)

NEWHeader1.png

Posted

Thx,

$WS_POPUP, $WS_EX_TOPMOST + $WS_EX_TOOLWINDOW is perfect for the first 1 but is there a control just to have close no minimize or maximize that can be used for main window?

Posted

got it

#include <GUIConstants.au3>


GUICreate(" Type 1", 350, 340, 10, 10, $WS_SYSMENU + $WS_CAPTION)
GUICtrlCreateEdit("", 10, 10, 330, 280)

GUISetState()


While 1
    sleep(10)
WEnd

8)

NEWHeader1.png

Posted

GUICreate(" Type 1", 350, 340, 10, 10, $WS_POPUP + $WS_CAPTION)

GUICreate("Type 2", 350, 340, -1, -1, $WS_POPUP, $WS_EX_TOPMOST + $WS_EX_TOOLWINDOW)

You've been on the forum long enough to know that you should never add styles and to always use BitOR.
Posted

You've been on the forum long enough to know that you should never add styles and to always use BitOR.

your right...

i just grabbed them from older scripts... and didn't check the BitOr

8)

NEWHeader1.png

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...