GEOS SDK TechDocs
|
|
5.3 VisText VM File Storage
|
5.5 Key Functions
VTI_filters, VisTextFilters, VisTextFilterClass, ATTR_VIS_TEXT_EXTENDED_FILTER, MSG_VIS_TEXT_SET_FILTER, MSG_VIS_TEXT_GET_FILTER
When the user enters text into the text object, the text object is able to filter out characters that it does not wish to be displayed. This behavior is produced through use of
VisTextFilters
.
VTI_
filters
stores a
VisTextFilters
record. This record has several entries:
VTF_UPCASE_CHARS ensures that any alphabetic characters are made uppercase. Other characters are unaffected.
VTF_FILTER_CLASS stores a
VisTextFilterClass
. This value can be any one of the following:
For more complex filtering, you can include ATTR_VIS_TEXT_EXTENDED_FILTER in your text object. Each value corresponds to a different message which you can intercept to provide custom filtering. These values are:
VisTextReplaceParameters
structure that you can either accept or reject as a whole. This will be supported in an upcoming release.byte MSG_VIS_TEXT_GET_FILTER();
This message retrieves the current
VisTextFilters
in use by the text object (stored in VTI_
filters
).
Source: Unrestricted.
Destination: Any text object.
Return:
VisTextFilters
in use by the text object.
Interception: Generally not intercepted.
void MSG_VIS_TEXT_SET_FILTER(
byte filter);
This message sets the text object's
VisTextFilters
(stored in VTI_
filters
) to the passed value. Resetting this filter does not affect any text that already exists in the text object.
Source: Unrestricted.
Destination: Any text object.
Parameters:
filter
VisTextFilters
to set.
Interception: Generally not intercepted.
word MSG_VIS_TEXT_FILTER_VIA_CHARACTER(
word charToFilter);
This message allows the text object to filter text on a character by character basis. This message is called for each character that is entered into the text object.
This message will be generated if the text object includes ATTR_VIS_TEXT_EXTENDED_FILTER in its instance data, with its value set to the
VisTextExtendedFilterType
VTEFT_CHARACTER_LEVELER_LEVEL.
Source: Sent by the system if text object contains ATTR_VIS_TEXT_EXTENDED_FILTER set to VTEFT_CHARACTER_LEVELER_LEVEL.
Destination: Any text object
Parameters: charToFilter Character value that is being filtered. You can pass this value on to the superclass or filter it out.
Interception: Must intercept to provide character by character filtering.
GEOS SDK TechDocs
|
|
5.3 VisText VM File Storage
|
5.5 Key Functions