Enumerations Edit Dialog

The enumerations edit dialog allows you to specify the possible values for an enumeration.

The resource type for the enumeration is entered in the Type field (eg for 'justify', the type is 'XtRjustify').

Entries are added using the selection field. For each entry you should specify the name ('justify_center'), the symbol used in generated code ('XtJustifyCenter') and the name used in resource files ('center').

The symbols used in code and resource files are typically defined in the type converter for the relevant resource type. If you are unable to find these definitions, please contact your widget provider.

The first enumeration entry is assumed to be the default enumeration value - it will be displayed in parentheses. This entry is used to display a resource value not explicitly set by the user. The order of enumeration entries can be changed using the arrow buttons.

xdesigner builds a single option menu for the given enumeration type. If your widget has many resources of the same enumeration type, they will share the same option menu. If these resources happen to have different default values, you might like to have a special fake entry "(Default)" as a generic default value.

The names used for the entries are used by X-Designer as the widget names of the buttons in the option menu, and therefore appear as the button labels. These can be overridden in resource files.

See also: