PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Adds a new option into a Check Box control. The option is added after the existing options.
Versions 22 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 22
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
// Add 2 options
CheckBoxAdd(CBOX_Options, "Read a book on a tablet")
CheckBoxAdd(CBOX_Options, "Read a paperback")
Syntax
<Result> = CheckBoxAdd(<Check Box control> , <Caption> [, <Sub-caption> [, <Image>]])
<Result>: Integer
  • Subscript of added option.
  • -1 if an error occurred. To find out the error details, use ErrorInfo.
<Check Box control>: Control name
Name of Check Box control into which the option will be added. The option is added after the existing options.
<Caption>: Character string (with quotes)
Caption of option to add.
<Sub-caption>: Optional character string (with quotes)
Sub-caption of option to add.
If this parameter is not specified, the added option has no sub-caption.
If this parameter is specified, the sub-caption will be displayed even if the check box is using a display mode without sub-caption.
<Image>: Optional character string (with quotes)
Image associated with the option to add.
If this parameter is not specified, the added option has no image.
If this parameter is specified, the image will be displayed only if the check box is using a "Vista style" display mode (with image).
Remarks
  • The characteristics of added option can also be modified via the following properties used on the option:
  • When adding options into a Check Box control, the control size is not modified. The added options may not be visible if the control is not large enough. The control can be enlarged by ..Width and ..Height.
  • To add an option at a specific position, use CheckBoxInsert.
Component : wd250obj.dll
Minimum version required
  • Version 18
This page is also available for…
Comments
Click [Add] to post a comment