--background--
COPYRIGHT
Copyright © 1996-97 Flavio Stanchina
DESCRIPTION
MUI's String class allows you to get and set its contents as a LONG,
but that's it: you don't have a real numeric string gadget that takes
input validation upon itself, and maybe offers some additional useful
services.
On the other side, there are at least three numeric input classes
available in MUI, but some applications could need a traditional
string gadget because the acceptable range of input values doesn't
fit well in the limits of a slider or a knob.
NumericString is a subclass of Group class which features a string
and two arrow buttons for incrementing/decrementing the numeric
value, like other platforms' numeric strings have.
This class understands almost all String attributes plus some Numeric
attributes and methods that let it behave like a real numeric string
object should. This autodoc covers methods and attributes inherited
from Numeric class and String attributes whose behaviour is changed.
Please refer to the String class autodoc for additional attributes.
SEE ALSO
Numeric.muiString.mui
MUIA_Numeric_Max
MUIA_Numeric_Max (V14) [ISG], LONG
DESCRIPTION
Adjust the maximum value. Default is 100. If the minimum is greater than the maximum, the minimum is set equal to the maximum. If the current value is greater than the maximum then the value is set to the maximum value
SEE ALSO
MUIA_Numeric_Min
MUIA_Numeric_Min (V14) [ISG], LONG
DESCRIPTION
Adjust the minimum value. Default is 0. If the maximum is less than the minimum, the maximum is set equal to the minimum. If the current value is less than the minimum then the value is set to the minimum value
SEE ALSO
MUIA_Numeric_Value
MUIA_Numeric_Value (V14) [ISG], LONG
DESCRIPTION
Set the current value. The new value is validated to be between the minimum and maximum values
SEE ALSO
MUIA_String_Accept
MUIA_String_Accept (V14) [ISG], STRPTR
DESCRIPTION
A string of characters allowed as input for the string gadget.
Default is "0123456789".
If MUIA_Numeric_Min >= 0, i.e. no negative numbers are accepted, the
minus character will be automatically rejected too
NOTES
Setting MUIA_String_Accept or MUIA_String_Reject is discouraged,
since MUIA_String_Accept is handled automatically by the class.
SEE ALSO
MUIA_String_Format
MUIA_String_Format (V14) [I.G], LONG
DESCRIPTION
Adjust the alignment of the string. Default is
MUIV_String_Format_Right
SEE ALSO
MUIA_String_MaxLen
MUIA_String_MaxLen (V14) [I.G], LONG
DESCRIPTION
Set the maximum length for the string gadget. Default is 12
NOTES
The default is enough for every possible LONG value.
SEE ALSO
MUIM_Numeric_Decrease
MUIM_Numeric_Decrease (V14)
SYNOPSIS
DoMethod(obj, MUIM_Numeric_Decrease, LONG amount);
DESCRIPTION
Decrease MUIA_Numeric_Value of the specified amount
SEE ALSO
MUIM_Numeric_Increase
MUIM_Numeric_Increase (V14)
SYNOPSIS
DoMethod(obj, MUIM_Numeric_Increase, LONG amount);
DESCRIPTION
Increase MUIA_Numeric_Value of the specified amount