Recent

Author Topic: TCONTROL.AddHandlerkeyDown questions..  (Read 1708 times)

jamie

  • Hero Member
  • *****
  • Posts: 6130
TCONTROL.AddHandlerkeyDown questions..
« on: October 30, 2021, 11:11:19 pm »
I have a TGraphicsControl class being parented by a Tscrollbox. All Drawing is working fine but I noticed there is options for adding a OnkeyDown Handler in the TCONTROL base class ? I assumed it would connect into the parent's key handling but apparently it does not, does not seem to get triggered.

  I understand the TScrollBox generally does not use keys other than the scrolling keys etc but it is a TWinControl so it has the abilities to receive the keystrokes.

  Is there something in the design that does not allow the passage of key strokes to be sent to any child's that has uses the
"AddHandlerOnKeyDown" for example ?

  This feature is in the TCONTROL class not the TWiNControl so I only assume it allows to capture keys from the parent if desired.
The only true wisdom is knowing you know nothing

 

TinyPortal © 2005-2018