ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Chart functions
  • Menu identifier
  • Enabled/Disabled line
  • Languages
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
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
// Modify the line 50 in the context menu of "MyChart"
grMenuOption("MyChart", 50, "Print the chart")
// Modify the line 50 in the context menu of CHART_MyChart
grMenuOption(CHART_MyChart, 50, "Print the chart")
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. The specified menu line is disabled if this parameter corresponds to an empty string (""): this line will not be displayed anymore 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" sub-menu
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: wd290grf.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/21/2023

Send a report | Local help