Starting your Delphi VCL app meanwhile your mouse is moving, no accelerators are shown (Menu, button, focus rect missing… etc.) same when clicking a button to open a new form
Posted by jpluimers on 2018/07/24
Problem (D2007 and up)
If you are starting your Delphi VCL app meanwhile your mouse is moving, no accelerators are shown (Menu, button, focus rect missing… etc.)
Something similar happens when you click on a button which opens a new form, somehow UI State becomes a state which is wrong.
Solution
In a detoured Form.DoShow(Or in every OnShow event) :Self.Perform(WM_CHANGEUISTATE, MakeLong(UIS_CLEAR, UISF_HIDEACCEL or UISF_HIDEFOCUS), 0);
- No repaint penalty
- no flicker
- accels
- focus rect are always shown
- system is not touched.
Source: [WayBack] So, here is the thing…If you are starting your Delphi VCL app meanwhile your mouse is moving, no accelerators are shown (Menu, button, focus rect mis… – Attila Kovacs – Google+
Related: [WayBack] c# – Show Hotkeys at All Times – Stack Overflow
–jeroen






Leave a comment