Focus rectangle works fine here with XP and PB 4.10 B4Derek wrote:Appears to be the same on xp, as srod said.
Selection box around gadget
This reminds me of a problem I had a few years ago
http://www.purebasic.fr/english/viewtop ... 4721#64721
Check Display Properties --> Appearance --> Effects
If Hide underlined letters for keyboard navigation until I press the Alt key is checked, un-check it and see what happens.
If I check that option I get the same faulty behavior described by Derek.
http://www.purebasic.fr/english/viewtop ... 4721#64721
Check Display Properties --> Appearance --> Effects
If Hide underlined letters for keyboard navigation until I press the Alt key is checked, un-check it and see what happens.
If I check that option I get the same faulty behavior described by Derek.
What goes around comes around.
PB 5.21 LTS (x86) - Windows 8.1
PB 5.21 LTS (x86) - Windows 8.1
I'm in work now, I'll try it later on my Vista setup and see what happens.Sparkie wrote:This reminds me of a problem I had a few years ago
http://www.purebasic.fr/english/viewtop ... 4721#64721
Check Display Properties --> Appearance --> Effects
If Hide underlined letters for keyboard navigation until I press the Alt key is checked, un-check it and see what happens.
If I check that option I get the same faulty behavior described by Derek.
This should clear things up a bit...Adjusting Display Options: Hide Underlined Letters for Keyboard Navigation Until ALT Key Is Pressed
ms wrote:By pressing keys that correspond to the underlined letters in menus, commands, or dialog box options, you can quickly select options using the keyboard, rather than the mouse. You can also choose to hide underlined letters for keyboard navigation and input indicators (the dotted rectangles around objects) until you start using the keyboard to navigate in Windows, generally with the ALT, TAB or arrow keys. This procedure tells you how to select this option through Display Properties in Control Panel.
What goes around comes around.
PB 5.21 LTS (x86) - Windows 8.1
PB 5.21 LTS (x86) - Windows 8.1
I haven't fully researched and/or tested this, but try sending #WM_UPDATEUISTATE to remove the hidden focus when XP skins is enabled. This will (I think) override the user option of hiding the focus rectangle. The hidden underlined accelerator keys should remain intact (again, I think).
Code: Select all
#UIS_CLEAR = 2
#UISF_HIDEFOCUS = 1
Macro MakeLong(low, high)
low | high <<16
EndMacro
If OpenWindow(0, 0, 0, 300, 120, "Test", #PB_Window_ScreenCentered | #PB_Window_SystemMenu) And CreateGadgetList(WindowID(0))
CreateMenu(0, WindowID(0))
MenuTitle("&Project")
MenuItem(1, "&Open" + Chr(9) + "Ctrl+O")
MenuItem(2, "&Save" + Chr(9) + "Ctrl+S")
MenuItem(3, "S&ave as"+ Chr(9) + "Ctrl+A")
MenuItem(4, "&Close" + Chr(9) + "Ctrl+C")
ButtonGadget(0, 110, 40, 80, 30, "Ok")
TrackBarGadget(1, 20, 20, 260, 20, 0, 90)
SendMessage_(WindowID(0), #WM_UPDATEUISTATE, MakeLong(2, 1), 0)
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
End
What goes around comes around.
PB 5.21 LTS (x86) - Windows 8.1
PB 5.21 LTS (x86) - Windows 8.1