Sign in Join
FPDoc Onlineexperiment

TWinControl.SendDialogChar function

Member of TWinControlprotectedIn unit Controls

Forwards the key message to the parent form to be handled as an accelerator (shortcut) key.

Declaration

pascal
function SendDialogChar(var Message: TLMKey): Boolean

Arguments

Message

Message with the key event handled and updated in the method.

Function result

True if the key was handled.

Description

If the dialog character is handled in the Parent form, the CharCode member in Message is set to VK_UNKNOWN (0).

No actions are performed in the method when accelerator keys are not enabled for the LCL interface, or when ParentForm is unassigned for the control.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.