
Examples: Programming GUI Components
8-19
Examples: Programming GUI Components
This section provides basic code examples to get you started programming the
most commonly used components.
• “Push Button” on page 8-19
• “Toggle Button” on page 8-20
• “Radio Button” on page 8-21
• “Check Box” on page 8-21
• “Edit Text” on page 8-22
• “Slider” on page 8-23
• “List Box” on page 8-23
• “Pop-Up Menu” on page 8-24
• “Panel” on page 8-25
• “Button Group” on page 8-26
• “Axes” on page 8-27
• “ActiveX Control” on page 8-31
• “Menu Item” on page 8-37
Push Button
This example contains only a push button. Clicking the button, closes the GUI.
This is the push button’s
Callback callback. It displays the string Goodbye at
the command line and then closes the GUI.
Commenti su questo manuale