D4rk^S0ul Posted February 11, 2006 Share Posted February 11, 2006 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). Link to comment Share on other sites More sharing options...
Valuater Posted February 11, 2006 Share Posted February 11, 2006 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) Link to comment Share on other sites More sharing options...
D4rk^S0ul Posted February 11, 2006 Author Share Posted February 11, 2006 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? Link to comment Share on other sites More sharing options...
Valuater Posted February 11, 2006 Share Posted February 11, 2006 Yes! i dont remember the combination of control styles this second try some combinations... others will help or i will remember 8) Link to comment Share on other sites More sharing options...
Valuater Posted February 11, 2006 Share Posted February 11, 2006 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) Link to comment Share on other sites More sharing options...
D4rk^S0ul Posted February 11, 2006 Author Share Posted February 11, 2006 Thx Val, That works just how i wanted it. Link to comment Share on other sites More sharing options...
Valuater Posted February 11, 2006 Share Posted February 11, 2006 Welcome! 8) Link to comment Share on other sites More sharing options...
Valik Posted February 11, 2006 Share Posted February 11, 2006 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. Link to comment Share on other sites More sharing options...
jaenster Posted February 11, 2006 Share Posted February 11, 2006 Sorry but to who you say that of the rules ? -jaenster Link to comment Share on other sites More sharing options...
Valuater Posted February 11, 2006 Share Posted February 11, 2006 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 BitOr8) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now