TOC PREV NEXT INDEX

UIlist

Synopsis

a list of selectable strings

UIprimitive UIlist {
width = 75;
height => 4 * UIdata.UIfonts[0].lineHeight;
string+OPort2 selectedText;/*the value entered
in the text window */
Boolean listIsEditable; /* Default is 0 */
int &selectedItem;
int+ stringdims => array_size(strings);
string+IPort2 strings[];
string font;
omethod+notify_inst+notify update<NEvisible=0,lang="cxx",
interruptable=0> = "UIlistUpdate";
};

Description

The UIlist object presents a list of string items, one of which the user can select. The index of the selected list item is set in the selectedItem attribute, and the string itself is set in selectedText. The selectedItem attribute can also be an input, setting the selected list item based on the index value read.

Subobjects

message

Attribute inherited from the UIprimitive class.

x = 0; y;width=75;height= 4 * UIdata.UIfonts[0].lineHeight

UIgeom class attributes..

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

Attributes inherited from UIconnection class.

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

Attributes inherited from the UIwindow class. .

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

Attributes inherited from UIcore class.

selectedText

(String. OPort2) Text string of item selected from list. The value entered in the text window.

listIsEditable

(Boolean). If True(=1), allows editing of string list. The default is False(=0).

&selectedItem

(Integer). Index of the string list item selected.

stringdims

(Integer.) Number of items in the string list.

strings

(String array. IPort2) Array of strings displayed in the list.

font

(String.)

Example

Not Available

File

v/UI.v

See Also Related Modules


TOC PREV NEXT INDEX