PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE


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)
// Displays the popup menu in popup format of "MyChart", created by programming
grMenu("MyChart", grMenuForCompatibility)
// 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
grMenu(CHART_MyChart, grMenuWindow)
Syntax
grMenu(<Chart Name> , <Active>)
<Chart Name>: Character string (with or without quotes)
Name of chart to use. This name corresponds to:
  • the chart name defined by programming with grCreate.
  • the name of Chart control found in the window editor.
<Active>: Boolean
  • True if the popup menu of chart must be enabled,
  • False otherwise.
grMenu(<Chart Name> , <Type of Menu>)
<Chart Name>: Character string (with or without quotes)
Name of chart to use. This name corresponds to:
  • the chart name defined by programming with grCreate.
  • the name of Chart control 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 grMenuOption.
  • The data defined by grMenu will be taken into account during the next call to grDraw.
  • To modify the text of options found in the popup menu kept for compatibility, use grMenuOption.
  • The data defined by grMenu will be taken into account during the next call to grDraw.
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).
Components
WINDEVReports and Queries wd230grf.dll
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment