Opened 7 years ago

Closed 7 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: Severity: None
Keywords: Cc:


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)

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


Attachments (0)

Change History (1)

comment:1 Changed 7 years ago by Jos

  • Resolution set to No Bug
  • Status changed from new to closed

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Modify Ticket

as closed The ticket will remain with no owner.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.