Jump to content

GUI whit styling problems?!


 Share

Recommended Posts

I want a GUI that is Topmost, not visable in the menu and no Borders.

The 2nd gui in the test script is perfect but it have's a border around the gui and that is what i don't want.

if you test the script below you know what i mean.

#include <GUIConstants.au3>


$gui = GUICreate("This is what i want~~~~~~",220,70,100,100,BitOR ($WS_POPUP,$WS_EX_MDICHILD))
GUICtrlCreateLabel("This is what i want."&@CRLF&"But i want this gui also:"&@CRLF&"- Topmost"&@CRLF&"not visable in the menu balk under",10,10)
$exit = GUICtrlCreateButton("X",200,0,20,20)
GUISetState (@SW_SHOW)      

While 1
    $msg = GUIGetMsg()
    
    If $msg = $exit Then ExitLoop
Wend


GUICreate("This is what i have**********",220,70,350,100,$WS_POPUP,$WS_EX_MDICHILD&$WS_EX_TOPMOST)
GUICtrlCreateLabel("This is what i have."&@CRLF&""&@CRLF&"But now i have a ugly border on the GUI"&@CRLF&"It is Topmost and is not visable in the menu",10,10)
$exit = GUICtrlCreateButton("X",200,0,20,20)
GUISetState (@SW_SHOW)      

While 1
    $msg = GUIGetMsg()
    
    If $msg = $exit Then ExitLoop
Wend

[center]uqoii.nl[/center]

Link to comment
Share on other sites

I feel like I'm missing something. Your combining window style with extended window style in the first example for some reason. And then your trying to combine extended window styles with the & sign in the next example... ? Is this supposed to be for a child window? Or are you just putting $WS_EX_MDICHILD in there for some random reason?

Does this work?

#include <GUIConstants.au3>


GUICreate("This is what i have**********",220,70,350,100,$WS_POPUP,$WS_EX_TOPMOST)
GUICtrlCreateLabel("This is what i have."&@CRLF&""&@CRLF&"But now i have a ugly border on the GUI"&@CRLF&"It is Topmost and is not visable in the menu",10,10)
$exit = GUICtrlCreateButton("X",200,0,20,20)
GUISetState (@SW_SHOW)     

While 1
    $msg = GUIGetMsg()
   
    If $msg = $exit Then ExitLoop
Wend
Link to comment
Share on other sites

I feel like I'm missing something. Your combining window style with extended window style in the first example for some reason. And then your trying to combine extended window styles with the & sign in the next example... ? Is this supposed to be for a child window? Or are you just putting $WS_EX_MDICHILD in there for some random reason?

Does this work?

#include <GUIConstants.au3>


GUICreate("This is what i have**********",220,70,350,100,$WS_POPUP,$WS_EX_TOPMOST)
GUICtrlCreateLabel("This is what i have."&@CRLF&""&@CRLF&"But now i have a ugly border on the GUI"&@CRLF&"It is Topmost and is not visable in the menu",10,10)
$exit = GUICtrlCreateButton("X",200,0,20,20)
GUISetState (@SW_SHOW)     

While 1
    $msg = GUIGetMsg()
   
    If $msg = $exit Then ExitLoop
Wend
Your script is good but you can still see the gui in the taskbar.....

[center]uqoii.nl[/center]

Link to comment
Share on other sites

#include <GUIConstants.au3>
#NoTrayIcon ;Only if you don't want to see it
GUICreate("",220,70,100,200,$WS_POPUP,BitOR($WS_EX_TOPMOST,$WS_EX_TOOLWINDOW))
GUICtrlCreateLabel("This is what you want"&@CRLF&""&@CRLF&"It is Topmost and is not visable in the taskbar"&@CRLF&";-)",10,10)
$exit = GUICtrlCreateButton("X",200,0,20,20)
GUISetState (@SW_SHOW)    

While 1
    $msg = GUIGetMsg()
  
    If $msg = $exit Then ExitLoop
Wend

Have fun :)

Edited by taz742
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...