Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Label set with $WS_EX_TOPMOST and $GUI_ONTOP is hidden when I mouse over control.

$
0
0

I have a button over top of which I want to sometimes place a label.  I set the label's extended style to $WS_EX_TOPMOST.  However, the problem is when I hover over that button, the label is then hidden behind the button.  This seems counter intuitive.

 

Is this an issue with Autoit or something I'm doing wrong?  Is there a workaround?  Finally, should this be reported as a bug?

AutoIt         
  1. #include <GuiConstantsEx.au3>
  2. #include <StaticConstants.au3>
  3. #include <WindowsConstants.au3>
  4.  
  5. Const $SIZENWSE = 12
  6.  
  7. GUICreate("Repro")
  8.  
  9. GUICtrlCreateButton("Hover Over Me!", 10, 10, 90, 90)
  10.  
  11. Const $h_box = GuiCtrlCreateLabel('', 8, 8, 15, 15, $SS_BLACKRECT, $WS_EX_TOPMOST)
  12.  
  13. GUICtrlSetState($h_box, $GUI_ONTOP)
  14.  
  15. GuiCtrlSetCursor($h_box, $SIZENWSE)
  16.  
  17.  
  18.     Switch GUIGetMsg()            
  19.         Case $GUI_EVENT_CLOSE
  20.             Exit
  21.     EndSwitch

Edit: latest beta on Windows 7 x64.


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>