PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • Menu identifier
  • Enabled/Disabled line
  • Languages
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
Modifies the text of an option in the popup menu of a chart.
Reminder: The popup menu is enabled by default. To modify the status of the popup menu, use grMenu.
Example
// Modify the line 50 in the popup menu of "MyChart"
grMenuOption("MyChart", 50, "Print the chart")
// Modify the line 50 in the popup menu of CHART_MyChart
grMenuOption(CHART_MyChart, 50, "Print the chart")
Syntax
grMenuOption(<Chart Name> , <Option Identifier> , <Text>)
<Chart Name>: Character string (with quotes)
Name of the chart defined by grCreate or name of the Chart control found in the window editor.
<Option Identifier>: Integer
Identifier of the option in the popup menu.
<Text>: Character string (with quotes)
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
10Type of chart
20Fonts
30Legend
40Gridlines
70Axes
80Style
90Zoom
100Enable the animations
110Enable the crosshair
60Save as
50Print
Type of Chart sub-menu
1020Line
1011Pie
1092Radar
1030Column
1080Area
1060Scatter
1093Chart with bubble
1095Surface
1070Stock
1094Funnel
1098HeatMap
11003D spatial view
"Pie" sub-menu
1010Pie
1090Semi-circular
1091Donut
1097Sunburst
"Column" sub-menu
1031Grouped column chart
1032Stacked column chart
1033Depth column chart (3DS)
1034Horizontal column chart
1035Horizontal stacked column chart
1096Waterfall
"Area" sub-menu
1083Area
1081Depth area (3DS)
1082Stacked area (3DS)
"Stock" sub-menu
1071Candlestick
1072BarCharts
1073Minimum Maximum
"Font" sub-menu
2010Title of chart
2020Title of axes
2030Legend
2040Labels
"Legend" sub-menu
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" sub-menu
8010Raised
8020Gradient
8030Smoothing
"Zoom" sub-menu
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 popup 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.
Components
WINDEVReports and Queries wd230grf.dll
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment