Sign in to follow this  
Followers 0
AzKay

GUISetStyle with $WS_POPUP

3 posts in this topic

#include <GUIConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 633, 454, 193, 115)
GUISetState(@SW_SHOW)

Opt("TrayMenuMode", 1)
$test = TrayCreateItem("ws_popup")
$exit = TrayCreateItem("exit")

While 1
    $nMsg = TrayGetMsg()
    Switch $nMsg
        Case $test
            GUISetStyle($WS_POPUP)
        Case $exit
            Exit
    EndSwitch
WEnd

Any way to make the effect instant?

Or else, it doesnt take effect until the windows been minimized/restored.


# MY LOVE FOR YOU... IS LIKE A TRUCK- #

Share this post


Link to post
Share on other sites



#include <GUIConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 633, 454, 193, 115)
GUISetState(@SW_SHOW)

Opt("TrayMenuMode", 1)
$test = TrayCreateItem("ws_popup")
$exit = TrayCreateItem("exit")

While 1
    $nMsg = TrayGetMsg()
    Switch $nMsg
        Case $test
            GUISetStyle($WS_POPUP)
        Case $exit
            Exit
    EndSwitch
WEnd

Any way to make the effect instant?

Or else, it doesnt take effect until the windows been minimized/restored.

What do you mean instant, it happens as soon as I press it on mine.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

Odd. Must be a problem at my end then.

On my end, When I hit ws_popup in the tray, The window looks the same, Except the border/caption is "frozen" until I minimize, then restore. Then its borderless/captionless.


# MY LOVE FOR YOU... IS LIKE A TRUCK- #

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