ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Chart functions
  • Coordinates of the window
  • Limits
  • Printing a chart
  • Image file
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
Defines the size of the window containing the chart.
Example
// Define the size of the window containing "MyChart"
grWndSize("MyChart", 10, 10, 100, 150)
Syntax
grWndSize(<Chart name> , <X1> , <Y1> , <X2> , <Y2>)
<Chart name>: Character string
Name of chart to use, defined by grCreate.
<X1>: Real
X coordinate (in pixels) of the top left corner of the window.
<Y1>: Real
Y coordinate (in pixels) of the top left corner of the window.
<X2>: Real
X coordinate (in pixels) of the bottom right corner of the window.
<Y2>: Real
Y-coordinate (in pixels) of the bottom right corner of the window.
Remarks

Coordinates of the window

The coordinates of the window are expressed in pixels from the top left corner of the screen.

Limits

  • This function cannot be used with the Chart controls.
  • This function cannot be used in the report editor.

Printing a chart

grWndSize can also be used to define the size of the chart for the print.
To avoid previewing the chart before it is printed:
  • define its dimensions with grWndSize,
  • call grPrint.
The size of the printed chart will be the size of the chart in the window.

Image file

If the destination of the chart corresponds to a BMP, EMF or WMF file, grWndSize initializes the dimensions of the chart image to save it.
Component: wd270grf.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