Modify

Opened 10 years ago

Closed 10 years ago

#3199 closed Bug (No Bug)

TopMost fo GUI attribute is not set when using GuiSetStyle

Reported by: jay_paans@… Owned by:
Milestone: Component: AutoIt
Version: 3.3.14.1 Severity: None
Keywords: Cc:

Description

I tried using a (tray)menu to toggle the TopMost attribute for a simple GUI, using GuiSetStyle. Apparently this did not work. Then I boiled the code down to check the GuiSetStyle function and it still doesn't work.

Example code:

;~ #include <GUIConstants.au3>
Global Const $WS_EX_TOPMOST = 0x00000008 ; copied from GUIConstants.au3

#region - GUI Create
;~ GUICreate('Test GUI', 400, 300, -1, -1, -1, $WS_EX_TOPMOST) ; use this line to have Topmost included directly - it works
GUICreate('Test GUI', 400, 300) ; use this line to check in combination with GuiSetStyle()
GUICtrlCreateLabel("Test if topmost attribute is effective now.", 10, 10)
GUISetState()
#endregion

GUISetStyle(-1, $WS_EX_TOPMOST) ; does not work?

Sleep(5000)

Attachments (0)

Change History (1)

comment:1 by Jos, 10 years ago

Resolution: No Bug
Status: newclosed

Modify Ticket

Action
as closed The ticket will remain with no owner.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.