ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Chart functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Allows you to choose the type of context menu displayed by a chart.
Example
// Affiche le menu contextuel sous forme de popup du graphe "MonGraphe", créé par programmation
grMenu("MonGraphe", grMenuForCompatibility)
// Active le menu contextuel sous forme de fenêtre pour le champ GRF_MonGraphe
grMenu(GRF_MonGraphe, grMenuWindow)
Syntax
grMenu(<Chart name> , <Type of menu>)
<Chart name>: Control name or character string
Name of the chart to be used. This name corresponds to:
  • the name of the chart defined programmatically with grCreate.
  • the name of the Chart control in the window editor.
<Type of menu>: Integer constant
Type of menu to display:
grMenuForCompatibilityA drop-down context 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 previous versions..
grMenuNoneNo context menu is displayed.
Note: This constant corresponds to the False value used in previous versions..
grMenuWindowA context menu in window format is displayed.
Remarks
  • To modify the text of options in the context 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).
Component: wd300grf.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/21/2024

Send a report | Local help