PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Coordinates
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
Builds a sequence of characters containing a line.
WINDEVUniversal Windows 10 App This sequence of characters is used to draw a line:
  • in an element of a List Box or Combo Box control.
  • in the title bar and/or status bar of a window.
  • in a Static control.
Example
WINDEV
// Draw a green line in an element of "LIST_Figure" control
ListAdd(LIST_Figure, gLine(0, 0, 25, 18, LightGreen))
Syntax
<Result> = gLine(<X1> , <Y1> , <X2> , <Y2> [, <Color>])
<Result>: Character string
Sequence of characters containing a line.
WINDEVUniversal Windows 10 App This sequence of characters can be:
WEBDEV - Server code This sequence of characters is not interpreted by the controls in WEBDEV. This function can be used to format the string returned by a WEBDEV Webservice consumed by a WINDEV or WINDEV Mobile application.
<X1>: Real
X-coordinate (in pixels) of the start point of the line.
<Y1>: Real
Y-coordinate (in pixels) of the start point of the line.
<X2>: Real
X-coordinate (in pixels) of the end point of the line. This ending point is not drawn.
<Y2>: Real
Y-coordinate (in pixels) of the end point of the line. This ending point is not drawn.
<Color>: Integer or constant (optional)
Line color. This color can correspond to:
If this parameter is not specified, the color of the line corresponds to the color of the current text (defined by gPen).
Remarks

Coordinates

All the coordinates are expressed in pixels in relation to the upper-left corner of the element used (in relation to the upper-left corner of the row found in the List Box or Combo Box control for example).
Component: wd270mdl.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment