The situation:
I have a TFrame with a TStringGrid and a TBitBtn.
TBitBtn has an accelerator key (Let's say it is 'A').
TStringGrid has those options: goFixedVertLine,
goFixedHorzLine, goVertLine, goHorzLine,
goColSizing, goColMoving and goRowSelect.
Note that goEditing is not in the options.
What happend:
When TStringGrid has focus, if the user hit the 'A' key
(corresponding to TBitBtn accelerator), TBitBtn has his
OnClick triggered. TStringGrid doesn't see the
key (OnKeyPress not triggered).
Now if the user hit 'B' instead of 'A', as there is no
accelerator key for 'B', TStringGrid has his
OnKeyPress triggered.
What I need:
I need to have TStringGrid.OnKeyPress triggered for
each laphanumeric key pressed by the user and have
accelerator key working only when the user use the
ALT key with the alphanumeric key.
Actually, I want to derive my own component from
TStringGrid to implement this behaviour.
Any help appreciated.
--
[EMAIL PROTECTED]
Author of ICS (Internet Component Suite, freeware)
Author of MidWare (Multi-tier framework, freeware)
http://www.overbyte.be
_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi