GEOS SDK TechDocs
|
|
4.1 PrefClass
|
4.3 PrefItemGroupClass
PrefValue objects behave like GenValue objects except that they have the ability to store an "original" value in the
PVI_originalValue
instance data field. Unlike GenValue objects, PrefValues can only handle single word values.
Code Display 22-5 PrefValueClass Instance Data
@class PrefValueClass, PrefClass;
@instance word PVI_originalValue = 0;
@vardata void ATTR_PREF_VALUE_ORIG_IS_INDETERMINATE;
@vardata word ATTR_PREF_VALUE_ROUND; /* Specifies an integer value to which the value will be rounded on .INI file * reads/writes. For instance, with a value for 10 here, the value would always * round off to the nearest 10. Note that the user can still type in an illegal * value, but this value will be rounded before saving to the .INI file.*/
void MSG_PREF_VALUE_SET_ORIGINAL_VALUE(
word orig,
Boolean indeterminate);
This message sets the "original" value of the object--it also sets the value stored by the superclass.
GEOS SDK TechDocs
|
|
4.1 PrefClass
|
4.3 PrefItemGroupClass