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+nonotify stringdims => array_size(strings);
string+IPort2 strings[];
string font;
omethod+notify_inst+notify update<NEvisible=0,lang="cxx",interruptable=0>
= "UIlistUpdate";
};
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.
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.
(String. OPort2) Text string of item selected from list. The value entered in the text window.
(Boolean). If True(=1), allows editing of string list. The default is False(=0).
(Integer). Index of the string list item selected.
(Integer.) Number of items in the string list.
(String array. IPort2) Array of strings displayed in the list.