AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones de gráficos
  • Menu identifier
  • Enabled/Disabled line
  • Languages
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
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).
Ejemplo
// 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")
Sintaxis
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..
Observaciones

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.
Componente: wd300grf.dll
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 21/09/2024

Señalar un error o enviar una sugerencia | Ayuda local