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: | 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)
Note:
See TracTickets
for help on using tickets.

No Bug as explained in the forum a while ago:
https://www.autoitscript.com/forum/topic/125718-ws_ex_topmost-set-after-gui-creation/?do=findComment&comment=872693
Jos