| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (3 out of 9)

Types of Buttons

The types of buttons are as follows. All buttons except action buttons are associated with a variable or a parameter:

Button Description
Action button
Causes G2 to perform one or more actions.
Check box
Assigns an on or off value to a symbolic, quantitative, logical, or text-value variable or parameter.
Radio button
Assigns one of a mutually exclusive set of symbols, numbers, logical values, or text values to a variable or parameter.
Slider
Assigns numeric values to a variable or parameter as a pointer slides along a horizontal guide.
Type-in box
Lets you enter a symbolic, quantitative, logical, or text value for a variable or parameter.


Note: While buttons provide solutions for some of your user-interface requirements, we recommend that you use the GUIDE/UIL product, shipped with G2. GUIDE/UIL provides an extensive set of user-interface tools. See the G2 GUIDE User's Guide for more information.

Subclassing Buttons

You can subclass all system-defined buttons. Subclassing buttons lets you redefine their icon descriptions, and provide the default values for any attributes that you require.

| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (3 out of 9)

Copyright © 1997 Gensym Corporation, Inc.