TOC PREV NEXT INDEX

UIselectionDialog

Synopsis

a dialog to select a string from a list of strings

UIpromptBox UIselectionDialog {
Boolean listIsEditable; /* Default is 0 */
int+OPort2 &selectedItem;
int stringdims => array_size(strings);
string+IPort2 strings[];
method_inst inst<NEvisible=0,lang="cxx",interruptable=0> = "UIselectionBoxInstance";
method_val update<NEvisible=0,lang="cxx",interruptable=0> = "UIselectionBoxUpdate";
};

Description

UIselectionBox is a dialog that lets a user select a string from a list of strings.

Subobjects

prompt;text;applyButton;applyLabelString

Attributes of the UIpromptBoxclass.

title;isModal;autoUnmanage;destroyOnUnmanage;ok;cancel;okButton;okLabelString;cancelButton;cancelLabelString;display

Attributes inherited from UIdialog.

message

UIdecorContainerclass attribute.

x; y;width; height;

UIgeom class attributes.

clientWidth; clientHeight

UIdecorGeom class attributes

* parent;grouptoParent;&cursor;events <Not visible in Network Editor>;

UIwindow class attributes

shellParent <Not visible in Network Editor>;canHaveChildren <Not visible in Network Editor> =0

UIconnectionclass attributes inherited from UIwindow.

&visible=0;&active;pixmap;color;fontAttribute;fontlist <No longer used. Not visible in Network Editor>;cxxhandle <Internal Object. Not visible in Network Editor>;handle <Internal Object. Not visible in Network Editor>;window_resources <No longer used. Not visible in Network Editor>;motif_resources <No longer used. Not visible in Network Editor>;layout <No longer used. Not visible in Network Editor>.

Attributes inherited from UIcore class through UIwindow

listIsEditable.

Boolean. Controls the treatment of strings typed into the text area. If 1, then typing any string in the text area of the dialog affects the text, adds the text to the list of strings, and marks it as the selected list item. If 0, typing any string in the text area does not affect the text unless it matches one of the list items. The default is 0.

&selectedItem

(Integer. OPort2) Sets or indicates the index of the item selected.This subobject is read/write.

stringdims =>array_size(strings)

(Integer) Indicates the number of strings in the strings array.

strings[]

(String. IPort2) An array of strings from which the user is to select. The strings appear in the dialog.This subobject is read/write

Example

Examples.Applications.UIApp examples/ui_samp.v

File

v/UI.v

See Also Related Modules

UIdialog
UIfileDialog
UIprimitive
UImessageBox

TOC PREV NEXT INDEX