Using @SelectTreeCommand On A Command Button
Sometimes, you want to place a button on your Form that performs one of the commands available on the Sesame command menu tree, such as switching to the Application Menu tab. To run code when a command button is clicked, place your code in the On Element Entry event of the command button.
1. Open your Form in Designer.
2. Place a command button on your Form.
3. Open the Programming Editor by selecting Program Layout from the Commands Control Panel. Select your Command Button from the Element dropdown. Select On Element Entry from the Event dropdown.



