Where minds and technology meet.
Search Site GrapeCity Portal Home
We've Moved! This is an archived version of our site.
Please update any bookmarks and visit GCPowerTools.com for the most current product information.
 »Input Pro  » Product Tour  » fpBoolean Control jump to:

fpBoolean Control

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
 Customizing Control States
   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
 Customizing the appearance
   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
 Creating a Group of controls
   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
 Toggling the Control’s State
   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
 Access Keys
   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.