Sign in to follow this  
Followers 0
D4rk^S0ul

GUI Control Styles

10 posts in this topic

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

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

Yes!

i dont remember the combination of control styles this second

try some combinations... others will help or i will remember

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Thx Val,

That works just how i wanted it.

Share this post


Link to post
Share on other sites

Welcome!

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Sorry but to who you say that of the rules ?


-jaenster

Share this post


Link to post
Share on other sites

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

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