1
vote
Vote UpVote

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

The Wiert Corner – 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 ...
Favorite? Off-Topic? jpluimers @ 2018-07-24 07:04

Statistics

Visits: 169
Votes: 1
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Alister Christie
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)