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
&includeMin <Not visible in Network Editor>;
&includeMax <Not visible in Network Editor>
events <Not visible in Network Editor>;
shellParent <Not visible in Network Editor>;
canHaveChildren <Not visible in Network Editor> =0
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:
1 (the default) -- The widget value is applied when the user presses Enter (or Ctrl-Enter, in the case of a multiline text widget).
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.vFile
See Also Related Modules