PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

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
grInfoPoint (Function)
In French: grInfoPoint
Returns the screen coordinates of a point or the screen coordinates of a value found in a chart.
This function allows you to retrieve the coordinates of a chart area in order to draw in this area with the drawing functions.
Note: This function must be used after grDraw (once the chart was drawn).
Versions 16 and later
WINDEVLinux This function is now available for the WINDEV applications in Linux.
New in version 16
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
// Screen coordinates of a point in the chart created by programming
x is int
x = grInfoPoint("MyChart", grXCoordinate, 1, 1)
// Coordinates of the center of a Radar chart displayed in a Chart control
Coordinates is string
Coordinates = grInfoPoint(CHART_Radar, grXCoordinate, grAxisX, grMin) + ", " + ...
grInfoPoint(CHART_Radar, grYCoordinate, grAxisY, grMin)
// Coordinates of the useful area of a chart displayed in a Chart control
Useful_Area is string
Useful_Area = grInfoPoint(CHART_Lines, grXCoordinate, grAxisX, grMin) + ", " + ...
grInfoPoint(CHART_Lines, grXCoordinate, grAxisX, grMax) + ":" + ...
grInfoPoint(CHART_Lines, grYCoordinate, grAxisY, grMin) + ", "+ ...
grInfoPoint(CHART_Lines, grYCoordinate, grAxisY, grMax)
// Coordinates of the area included between the minimum and maximum Y coordinate
Area is string
Area = grInfoPoint(CHART_Lines, grYCoordinate, 1, grMin) + "," + ...
grInfoPoint(CHART_Lines, grYCoordinate, 1, grMax)
Syntax
<Result> = grInfoPoint(<Chart Name> , <Type of Axis> , <Series Number> , <Category Number>)
<Result>: Integer
Coordinates of the specified point (in pixels) according to the specified axis. The coordinates are specified in relation to the chart (and not in relation to the screen).
<Chart Name>: Character string (with or without quotes)
Name of chart to use. This name corresponds to:
  • the chart name defined by programming with grCreate.
  • the name of Chart control (found in the window editor or page editor).
<Type of Axis>: Integer constant
Type of the axis taken into account when calculating the coordinates:
grXCoordinate
(Default value)
The coordinate is calculated on the X axis.
grYCoordinateThe coordinate is calculated on the Y axis.
<Series Number>: Integer
  • Number of the affected series.
  • Constant used to find out the coordinates of the point corresponding to the bounds of the axes:
    grAxisXCoordinates of bounds on the X axis.
    grAxisYCoordinates of bounds on the Y axis.
<Category Number>: Integer
  • Number of the affected category.
  • Constant used to find out the coordinates of the point corresponding to the bounds of the axes:
    grMaxCoordinates of upper bound.
    grMinCoordinates of lower bound.
Components
WINDEVReports and Queries wd230grf.dll
WEBDEV - Browser code WDJS.DLL
Linux wd230grf.so
Minimum required version
  • Version 14
This page is also available for…
Comments
Click [Add] to post a comment