PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

  • Equivalence for managing the menu options
  • Differences between WINDEV and WINDEV Mobile: Managing the menu options
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
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.
  • Versions 16 and later
    WINDEVWindows Mobile 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.
    New in version 16
    WINDEVWindows Mobile 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.
    WINDEVWindows Mobile 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.
Example
// 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 use>.Checked
<Result>: Boolean or integer
  • For a menu option:
    • True if the menu option is checked,
    • False otherwise.
  • Versions 16 and later
    WINDEVWindows Mobile 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.
    New in version 16
    WINDEVWindows Mobile 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.
    WINDEVWindows Mobile 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 use>: Character string (with or without quotes)
Name of the element to be used:
  • Name of the menu option.
  • Versions 16 and later
    WINDEVWindows Mobile Row of the TreeView control specified with the following syntax: <TreeView control>[Row index].
    New in version 16
    WINDEVWindows Mobile Row of the TreeView control specified with the following syntax: <TreeView control>[Row index].
    WINDEVWindows Mobile 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 use>.Checked = <Displayed>
<Element to use>: Character string (with or without quotes)
Name of the element to be used:
  • Name of menu option.
  • Versions 16 and later
    WINDEVWindows Mobile Row of the TreeView control specified with the following syntax: <TreeView control>[Row index].
    New in version 16
    WINDEVWindows Mobile Row of the TreeView control specified with the following syntax: <TreeView control>[Row index].
    WINDEVWindows Mobile 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.
  • Versions 16 and later
    WINDEVWindows Mobile 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.
    New in version 16
    WINDEVWindows Mobile 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.
    WINDEVWindows Mobile 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:
WINDEVWindowsWindows Mobile

Differences between WINDEV and WINDEV Mobile: Managing the menu options

WINDEV The menu options (in main menus or in popup menus) can be managed by the Menuxxx functions and by the corresponding properties.
Windows Mobile To optimize the size of the WINDEV Mobile framework installed on the Mobile device (Pocket PC), only the properties can be used to handle the menu options by programming.
The equivalence table is as follows:
Available functions
in WINDEV
Equivalent properties
MenuUnmark
MenuIsMarked
MenuMark
Checked
MenuStateState
MenuInvisibleVisible
MenuSelectMinusState
MenuSelectPlusState
MenuLabelCaption
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment