ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Graphic string functions
  • Coordinates
  • Width/Height of rectangle
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 circle or an ellipse.
WINDEVUniversal Windows 10 AppiPhone/iPadIOS WidgetMac Catalyst In a window, this sequence of characters is used to draw a circle or an ellipse:
  • 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 circle in an element of the "LIST_ShapeList" List Box
// The circle background is light green and the borders are light yellow
ListAdd(LIST_ShapeList, gCircle(0, 0, 25, 18, LightGreen, LightYellow))
Syntax
<Result> = gCircle(<X1> , <Y1> , <X2> , <Y2> [, <Background color> [, <Line color>]])
<Result>: Character string
Sequence of characters defining a circle or an ellipse.
WINDEVUniversal Windows 10 AppiPhone/iPadIOS WidgetMac Catalyst 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 upper-left corner of the rectangle containing the circle.
<Y1>: Real
Y-coordinate (in pixels) of the upper-left corner of the rectangle containing the circle.
<X2>: Real
X-coordinate (in pixels) of the lower-right corner of the rectangle containing the circle.
<Y2>: Real
Y-coordinate (in pixels) of the lower-right corner of the rectangle containing the circle.
<Background color>: Integer or constant (optional)
Circle background color. This color can correspond to:
If this parameter is not specified, the background color corresponds to the background color of the current text (defined by gBackground).
<Line color>: Integer or constant (optional)
Color of the circle line. 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 coordinates are expressed in pixels in relation to the upper-left corner of the element used (row in the List Box or Combo Box control, title bar of the window, status bar of window or Static control).

Width/Height of rectangle

The width of the reference rectangle is set to <X2> - <X1>.
The height of the reference rectangle is set to <Y2> - <Y1>.
Component: wd290mdl.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/08/2022

Send a report | Local help