- Coordinates of the window
- Printing a chart
- Image file
In french: grFenTaille
Defines the size of the window containing the chart.
// Define the size of the window containing "MyChart"
grWndSize("MyChart", 10, 10, 100, 150)
grWndSize(<Chart name> , <X1> , <Y1> , <X2> , <Y2>)
<Chart name>: Character string
Name of chart to use, defined by grCreate.
X coordinate (in pixels) of the top left corner of the window.
Y coordinate (in pixels) of the top left corner of the window.
X coordinate (in pixels) of the bottom right corner of the window.
Y-coordinate (in pixels) of the lower-right corner of the window.
Coordinates of the window
The coordinates of the window are expressed in pixels from the top left corner of the screen.
- 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.
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.
This page is also available for…