ComboBox resource panel

The ComboBox resource panel is a simple dialog used to set the resources specific to a ComboBox widget.

ComboBox resources fall into three categories: Display, Item, and Setting resources. The dialog is laid out in pages for convenience; near the top of the dialog are Tab Buttons which, when pressed, display the relevent page.

Display resources configure the general appearance of the widget: the font used to display the contents of the widget, various resources to configure the appearance of the Arrow associated with the ComboBox, and margin resources which configure spacing between the various components of the widget.

The Items page contains resources which configure the contents of the ComboBox.

The Settings page contains various scalar and boolean resources. The ComboBox type resource specifies whether the ComboBox List is permanently displayed under the widget (ComboBox), or popped up on request using the Arrow button displayed alongside the built-in TextField (Drop-Down ComboBox/Drop-Down List). A Drop-Down ComboBox differs from a Drop-Down List only in the fact that the TextField is editable in the former case, read-only in the latter.

Selection callbacks can be registered for the widget by selecting the Callbacks... option from the X-Designer Widget menu.

For more information on the ComboBox in general, and specific resources in particular, consult a suitable Motif Reference manual.

NOTES

The "ComboBox type" resource is a create-only attribute of the ComboBox widget: if you change the type, the widget will not reflect the changes in the dynamic display unless it is reset (the Reset option is in the X-Designer widget menu).

Note also that the true Motif 2.1 default value for the ComboBox type is XmCOMBO_BOX, which is a permanently visible List arranged underneath the TextField. This is not a sensible default value, since it creates an object which is different from the natural understanding of a ComboBox component. Hence the default offered by X-Designer is for a popup List arrangement (XmDROP_DOWN_COMBOBOX). You should be aware that X-Designer and the Motif toolkit differ in their interpretation of the default value in this respect.

See also: