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
Enables or disables the popup menu of a chart.
Note: The popup menu is enabled by default.
Allows you to choose the type of popup menu displayed by a chart.
Example
// Enables the popup menu of "MyChart", created by programming
grMenu("MyChart", True)
// Enables the popup menu for the CHART_MyChart control
grMenu(CHART_MyChart, True)
// Enables the popup menu in window format for the CHART_MyChart control
CHART_MyChart.Menu(grMenuWindow)
Syntax
<Chart control>.Menu(<Type of menu>)
<Chart control>: Control name
Name of the Chart control to use (found in the window editor).
<Type of menu>: Integer constant
Type of menu to display:
Versions 23 and later
grMenuNone
New in version 23
grMenuNone
grMenuNone
No popup menu is displayed.
Note: This constant corresponds to the False value used in the earlier versions.
Versions 23 and later
grMenuWindow
New in version 23
grMenuWindow
grMenuWindow
A popup menu in window format is displayed.
Versions 23 and later
grMenuForCompatibility
New in version 23
grMenuForCompatibility
grMenuForCompatibility
A drop-down popup menu is displayed. This option is used to display the menu of charts found in the versions earlier than version 23.
Note: This constant corresponds to the True value used in the earlier versions.
Remarks
  • To modify the text of menu options, use <Chart>.MenuOption.
  • The data defined by <Chart>.Menu will be taken into account during the next call to <Chart>.Draw.
  • To modify the text of options found in the popup menu kept for compatibility, use <Chart>.MenuOption.
  • The data defined by <Chart>.Menu will be taken into account during the next call to <Chart>.Draw.
Related Examples:
The Chart control (click management) Unit examples (WINDEV): The Chart control (click management)
[ + ] Customizing the click on a Pie chart.
Here, the section clicked by the user is pulled out by the application.
To implement this behavior, all you have to do is use grInfoXY (to identify the section clicked) and grPiePullOut (to pull out the section).
Component : wd240grf.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment