![]() |
![]() |
![]() |
![]() |
UIfield
Synopsis
type in numeric input or display numeric output
UIvaluator UIfield {
width = 100;
height = 30;
int outputOnly;
int updateMode;
/* display format */
enum format {
choices = {"mixed","fixed","scientific" };
} = "fixed";
/* To display a string when the value is unset or
undefined, set the "nullString" to the string you wish to display. */
string &nullString = "<NULL>";
/* Set to allow the text widget to resize to fit the
length of the value */
boolean &resizeMode;
omethod+notify_inst+notify update<NEvisible=0,
interruptable=0,lang="cxx"> = "UIfieldUpdate";
};Description
UIfield is a UIvaluator that accepts typed numeric input or displays numeric output.For text input/output, use UItextinstead.
Subobjects
&min;&max;&value;mode;&decimalPoints;&immediateMode;&includeMin <Not visible in Network Editor>;&includeMax <Not visible in Network Editor>
* parent;grouptoParent;&cursor;events <Not visible in Network Editor>;
shellParent <Not visible in Network Editor>;canHaveChildren <Not visible in Network Editor> =0
&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>
Integer. When not zero, the UIfield becomes an "output only" widget meant for displaying numeric results. The user cannot type into the widget.
Integer. Specifies the user action that will apply the current string value in the widget to the value subobject. Valid values for updateMode (which can be OR'ed to produce combinations of actions) are: 0 -- The widget value is not updated under any circumstances. 1 (the default) -- The widget value is applied when the user presses Enter (or Ctrl-Enter, in the case of a multiline text widget). 2 -- The widget value is applied when the widget loses keyboard focus. 4 -- The widget value is applied when the the widget loses pointer focus.
String. Sets the "nullString" to the string you wish to display when the value is unset or undefined.
Example
AVS5_Modules.Data_Input.ACU_background v/ACUmods.v v/view.v Examples.Applications.UIApp examples/ui_samp.v
File
See Also Related Modules
![]() |
![]() |
![]() |
![]() |