Adding button removes slider border
Posted: 24 Mar 2018, 11:55
Not sure if this is a bug/feature of AHK or Windows, but it's unexpected behaviour.
Adding a button to the GUI causes the slider to lose its focus indicator.
Otherwise the focus indicator has to be removed with PostMessage, 0x0128, 0x00010001, 0, , ahk_id %HGUI% ;UIS_SET << 16 | UISF_HIDEFOCUS
Code: Select all
Gui , New , +hwndHGUI
Gui , Add , Text , vText1, Slider1
Gui , Add , Slider, Buddy1Text1 x50 y10 w250
;Gui , Add , Button , x140 y60 w60 h23 , Button
Gui , Show , w320 h100
return
Otherwise the focus indicator has to be removed with PostMessage, 0x0128, 0x00010001, 0, , ahk_id %HGUI% ;UIS_SET << 16 | UISF_HIDEFOCUS