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
  • Menu identifier
  • Enabled/Disabled line
  • Languages
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Modifies the text of an option in the context menu of a chart.
Remark:
  • The context menu is enabled by default. To modify the status of the context menu, use grMenu.
  • This function can be used only if the chart menus are in compatibility mode (enabled with the grMenuForCompatibility constant of the grMenu function).
Example
// Modification de la ligne 50 du menu contextuel du graphe "MonGraphe"
grMenuOption("MonGraphe", 50, "Imprimer le graphe")
// Modification de la ligne 50 du menu contextuel du graphe GRF_MonGraphe
grMenuOption(GRF_MonGraphe, 50, "Imprimer le graphe")
Syntax
grMenuOption(<Chart name> , <Option identifier> , <Text>)
<Chart name>: Control name or character string
Name of the chart defined by grCreate or name of the Chart control in the window editor.
<Option identifier>: Integer
Identifier of the option in the context menu.
<Text>: Character string
New text for the specified menu option. If this parameter corresponds to an empty string (""), the specified menu line is deactivated: this line will no longer be displayed in the menu..
Remarks

Menu identifier

The menu identifiers are defined as follows:
Main menu
10Chart type
20Fonts
30Legend
40Gridlines
70Axes
80Style
90Zoom
100Enable animations
110Enable crosshair
60Save as
50Print
Type of Chart submenu
1020Line
1011Pie
1092Radar
1030Column
1080Area
1060Scatter
1093Chart with bubble
1095Surface
1070Stock
1094Funnel
1098HeatMap
11003D spatial view
"Pie" submenu
1010Pie
1090Semi-circular
1091Donut
1097Sunburst
"Column" submenu
1031Clustered Column chart
1032Stacked Column chart
1033Depth column chart (3DS)
1034Horizontal Column chart
1035Horizontal Stacked Column chart
1096Waterfall
"Area" submenu
1083Area
1081Depth area (3DS)
1082Stacked area (3DS)
"Stock" submenu
1071Candlestick
1072BarCharts
1073MinMax
"Font" submenu
2010Title of chart
2020Title of axes
2030Legend
2040Labels
"Legend" submenu
3010None
3020Right
3030Left
3040Top
3050Bottom
"Gridlines" submenu
4010Horizontal
4020Vertical
"Axes" sub-mneu
7010X-coordinates on horizontal axis
7020Horizontal axis oriented to the right
7030Vertical axis oriented to the top
"Style" submenu
8010Raised
8020Gradient
8030Smoothing
"Zoom" submenu
9010Horizontal zoom
9020Vertical zoom
9030Initial zoom

Enabled/Disabled line

  • To disable a menu option, use grMenuOption and specify an empty string ("") in the <Text> parameter.
  • To re-enable a menu option disabled by grMenuOption, use this function with the same menu identifier and specify a non-empty caption.
  • The data defined by grMenuOption will be taken into account during the next call to grDraw.

Languages

  • The context menu is available in two languages (English and French). No language can be added.
  • The text is modified in the current language. To manage the foreign languages, modify the preset texts.
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