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>

Inherited from UIvaluator .

message

UIprimitive class attribute..

x; y;

width =100;

height =30;

UIgeom class attributes.

* parent;

grouptoParent;

&cursor;

events <Not visible in Network Editor>;

UIwindow class attributes

shellParent <Not visible in Network Editor>;

canHaveChildren <Not visible in Network Editor> =0

UIconnection class attributes inherited from UIwindow.

&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>

Attributes inherited from UIcore class through UIwindow.

outputOnly

Integer. When not zero, the UIfield becomes an "output only" widget meant for displaying numeric results. The user cannot type into the widget.

updateMode

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.

format =1

Enumerator. Selects display format.
0 -- mixed
1 -- ¯(the default) fixed
2 -- scientific

&nullString

String. Sets the "nullString" to the string you wish to display when the value is unset or undefined.

&resizeMode

Boolean. Allows the text widget to re-size to fit the length of the value.

Example

AVS5_Modules.Data_Input.ACU_background
v/ACUmods.v
v/view.v
Examples.Applications.UIApp
examples/ui_samp.v

File

v/UI.v

See Also Related Modules

UIfieldTypein
UIdial
UIslider
UIvaluator
UItext