FarPoint Technologies
(800) 645-5913
fpsales@fpoint.com
FarPoint Europe (UK)
+44 (0) 1798 812 372
salesEurope@fpoint.com
|
|
The fpBoolean control can represent two
or three values, making it a two- or three-state control. Two-state controls
display values such as "yes" and "no" or "true" and "false." Three-state
controls also display a third value, "grayed." The grayed state represents an
indeterminate setting. For example, if selected text contains some boldface
text, the Bold setting can be displayed as grayed to show that some text is
bold and some is not.
In addition, you can customize which text and graphics are displayed for each
state.You can also group fpBoolean controls so that they work together, for
example, as a group of option buttons.
Customizing Control States |
Customizing the appearance | Creating a
Group of controls | Toggling the
Control's State | Access Keys
Back to Top
| You can easily customize the text and/or graphics
for each control state by setting the TextTrue, TextFalse, and TextGrayed
properties for text and PictureTrue, PictureFalse, and PictureGrayed properties
for custom pictures. |
 |
|
Back to Top
| You can customize the style and appearance of the
fpBoolean control, including specifying the alignment of the control's text and
picture and the type of picture displayed. You can also specify that the text
can appear on multiple lines. |
 |
|
Back to Top
You can group fpBoolean controls so that they
work together as a unit. For example, you might want to group a set of
fpBoolean controls to operate like option buttons that let the user select only
one control at a time.
You can set or return the group value of a group of fpBoolean controls using
the GroupValue property. The group value is written to the database when a
group of fpBoolean controls is bound to the same database field.
|
 |
|
Back to Top
| The fpBoolean control's state can toggle between available
values when the user clicks the left mouse button while the pointer is over the
control or presses the spacebar when the control has the focus. You can also
specify that certain characters toggle the fpBoolean control when typed by the
user. |
|
|
Back to Top
| If you prefer, the control can provide an access key. If the
control provides an access key, the user can move the focus to the control by
pressing the Alt key and the specified character, for example, Alt+F. Specify
the access key by putting an ampersand (&) in front of the character in the
text of the control. You can type ampersand characters that display as
characters (without creating an access key) by setting the AllowMnemonic
property to False.
|
|
|
|
|
| Have a question? |
|
 |
|