From Xojo Documentation
|You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!|
The caption of a control.
To set an accelerator character, precede the character in the Caption with an ampersand. In order to show an ampersand in the Caption, use two ampersands in a row.
This code sets the caption of the control to "OK".
This code in the Pressed event handler for a DesktopButton changes the text of the button each time it is pressed: