Modify

Opened 9 years ago

Closed 9 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 Changed 9 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

Action
as closed The ticket will remain with no owner.
Author


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

 
Note: See TracTickets for help on using tickets.