|
|
|
|
- Equivalence for managing the menu options
- Using functions or properties
Checked (Property) In french: Cochée
The Checked property is used to get and modify the checkmark state of an element. This property can be used: - in the options of the main menus and popup menus. In this case, you can know whether the checkmark is displayed to the left of the option.
on the rows of TreeView controls. In this case, you have the ability to know whether the checkmark is displayed, not displayed or in an undefined state.
// Click on the "Display totals" option IF OPT_DisplayOption.Checked THEN OPT_DisplayOption.Checked = False STC_TOTAL.Visible = False ELSE OPT_DisplayOption.Checked = True STC_TOTAL.Visible = True END
Syntax
Getting the checkmark state for an element Hide the details
<Result> = <Element to handle>.Checked
<Result>: Boolean or integer - For a menu option:
- True if the menu option is checked,
- False otherwise.
For a row in a TreeView control: - 1 if the option is checked
- 0 if the option is unchecked
- -1 if the option state is undefined.
<Element to handle>: Character string Name of the element to be used: - Name of the menu option.
Row of the TreeView control specified with the following syntax: <TreeView control>[Row index].
Modifying the checkmark state for an element Hide the details
<Element to handle>.Checked = <Displayed>
<Element to handle>: Character string Name of the element to be used: - Name of the menu option.
Row of the TreeView control specified with the following syntax: <TreeView control>[Row index].
<Displayed>: Boolean or integer - For a menu option:
- True if the menu option is checked,
- False otherwise.
For a row in a TreeView control: - 1 if the option is checked
- 0 if the option is unchecked
- -1 if the option state is undefined.
Remarks Equivalence for managing the menu options The Checked property is equivalent to the following menu management functions:
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|