TCalculatorPanel.CalcKeyPress procedure
Applies a key or button press to the calculator panel.
Declaration
procedure CalcKeyPress(Sender: TObject; var Key: char)Arguments
Sender | Object for the KeyPress event. |
Key | Key value captured in the panel. |
Description
CalcKeyPress is a method used to implement the OnKeyPress event handler for the TCalculatorForm instance where the panel is displayed.
Sender is the object instance (TCalculatorForm) for the event
notification.
Key is the character value for the key (or button) for the
notification. If Key is the caption for one of the buttons on the panel, its
Click method is called. Otherwise, the private CalcKey method is called to
apply the Key value.
CalcKeyPress is called by a TCalculatorForm instance when its OnKeyPress event handler is executed.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
