Show: Delphi C++
Display Preferences

Button Controls

From RAD Studio
Jump to: navigation, search

Go Up to Buttons and Similar Controls


Users click button controls to initiate actions. You can assign an action to a TButton component by creating an OnClick event handler for it. Double-clicking a button at design time takes you to the button's OnClick event handler in the Code editor.

  • Set Cancel to True if you want the button to trigger its OnClick event when the user presses Esc.
  • Set Default to True if you want the Enter key to trigger the button's OnClick event.

See Also

Personal tools
In other languages
Previous Versions
Assistance