| Allegro CL version 7.0 Unrevised from 6.2 to 7.0. | |||||||||
Arguments: editable-text
Returns the template for a single-line editable-text control, which
constrains the number and type of characters that a user can type into
the control. Use setf
to set up the template initially or to change it. You can also edit
the template string in the inspector window when inspecting an editable-text control.
A template consists of two kinds of characters:
*template-chars*
association list (any character not in this alist is regarded as a
static character). By default the template characters appear as blank
spaces in the control and allow users to enter certain types of
characters depending on which template character is specified for each
position.
Templates can be cleared with clear-template.
(setf (template-string my-editable-text-widget) "999-99-9999")
This example would set up a template for entering a social security
number. There is an entry in
*template-chars* for
the character #\9 indicating that a user must enter a numeral in its
position, and that it displays initially as a space. There is no entry
in *template-chars* for the dash
character, so the dashes in this template will display as dashes, and
users cannot type over them.
template-string
is a property of the editable-text class.
Copyright (c) 1998-2006, Franz Inc. Oakland, CA., USA. All rights reserved.
Documentation for Allegro CL version 7.0. This page was not revised from the 6.2 page.
Created 2004.8.21.
| Allegro CL version 7.0 Unrevised from 6.2 to 7.0. | |||||||||