PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • 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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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 (with quotes)
Name of the 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 for backup.
Components
WINDEVReports and Queries wd230grf.dll
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment