|
|
|
|
|
- Other ways to manage menu options
- Using functions or properties
Checked (Property) In french: Cochée
The Checked property gets and sets the checkmark state of an element. This property can be used: - in the options of the main menus and context 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 can determine whether the checkmark is displayed, hidden or in an undefined state.
IF OPT_OptionAfficher.Cochée THEN
OPT_OptionAfficher.Cochée = False
LIB_TOTAL.Visible = False
ELSE
OPT_OptionAfficher.Cochée = True
LIB_TOTAL.Visible = True
END
Syntax
Getting the checkmark state of an element Hide the details
<Result> = <Element to handle>.Checked
<Result>: Boolean or integer - For a menu item:
- True if the menu option is checked,
- False otherwise.
For a line 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 element to be manipulated: - Name of the menu option.
TreeView control line specified with the following notation: <Champ Arbre>[Line index].
Changing the checkmark state of an element Hide the details
<Element to handle>.Checked = <Displayed>
<Element to handle>: Character string Name of element to be manipulated: - Name of the menu option.
TreeView control line specified with the following notation: <Champ Arbre>[Line index].
<Displayed>: Boolean or integer - For a menu item:
- True if the menu option is checked,
- False otherwise.
For a line in a TreeView control: - 1 if the option is checked
- 0 if the option is unchecked
- -1 if the option state is undefined.
Remarks Other ways to manage menu options The Checked property is equivalent to the following functions:
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|