UItext
Synopsis
UIprimitive UItext {
width = 100;
height = 30;
string+OPort2 text;
int rows;
int columns;
int resizeToText;
int multiLine;
int outputOnly;
int updateMode;
int showLastPosition<NEvisible=0>=0;
omethod+notify_inst+notify update<NEvisible=0,interruptable=0,lang="cxx"> = "UItextUpdate";
};Description
UItext is a widget for entering text strings, or for displaying text strings that the user cannot alter.
Note : Use UIfield instead for numeric input/output.
Subobjects
events <Not visible in Network Editor>;
shellParent <Not visible in Network Editor>;
canHaveChildren <Not visible in Network Editor>
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> + Oport2;
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>
String. OPort2. The text that the user enters. Or, if outputOnly is set, the text to display to the user.
There are interactions between UItext's rows/columns and other subobjects, including its base class UIwindow's width/height, and its own resizeToText and multiLine subobjects.
"Setting" includes automatic resizes to this widget that occur when a parent UIapp or UIshell is resized. In this case, width/height always reflects the current size. However, width/height reflect the current size only if the Layout Editor is on.
If resizeToText is on, rows/columns and width/height are automatically reset to match the current state of the text field.
If multiLine is off, the user must scroll up/down with the arrow keys when the text exceeds the single row.
Integer. When on (any value other than 0), the user can enter multiple lines of text. rows > 1 automatically turns on multiLine. Otherwise, the default is off.
Example
Main.Filters.data_math
v/modules.v
Examples.Applications.UIApp
examples/ui_samp.vFile
See Also Related Modules