CursorEntry Manual


CursorEntry

Usage:


r = CursorEntry[p,v,options]

Where:

Description:

CursorEntry is an Entry widget, which can change number with cursor keys. The left and right cursor keys shifts the current position. The up and down cursor keys changes the value by 1 and execute the script specified by Command option. If Command returns True, the value will finally change. Otherwise, the value returns to the original one before the cursor manupilation. If Range option is set to a list of 2 numbers, the value is restricted within these numbers. Form option is used when the value is set to the Entry widget. The shift key increase the speed by a factor of 3. If DefaultPosition option is n (integer value), initial cursor position is at nth column from left (when n>0), or -nth column from right (when n<0). If SpinBox oprion is True, upward and downward spin button appear on the CursorEntry. These spin buttons act like a up and down cursor key.

Methods:

SetValue[v]
Sets a new value v.
Value[]
Returns the current value.
SetRange[v1,v2]
Sets a new lower limit to v1, upper limit to v2.
SetForm[f]
Sets a new $Form.

Example:


c = CursorEntry[f,10.23,Form->"10.5",Command:>(Print[c@Value[]];True),Range->{10,11},DefaultPosition->-3];

Send feedback to: Samo Stanic .