PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Coordinates
  • Width/Height of rectangle
  • Component
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
Builds a sequence of characters used to draw a rectangle.
WINDEVWindows MobileUniversal Windows 10 App This sequence of characters is used to draw a rectangle:
  • in an element found in a List Box or Combo Box control.
  • in the title bar and/or status bar of a window.
  • in a Static control.
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.
Versions 22 and later
Stored procedures This function is now available in the code of stored procedures.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
WEBDEV - Server codeWindows This function is now available for the WEBDEV sites in Windows.
New in version 22
Stored procedures This function is now available in the code of stored procedures.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
WEBDEV - Server codeWindows This function is now available for the WEBDEV sites in Windows.
Stored procedures This function is now available in the code of stored procedures.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WEBDEV - Server codeLinux This function is now available for the WEBDEV sites in Linux.
WEBDEV - Server codeWindows This function is now available for the WEBDEV sites in Windows.
Example
WINDEVWindows Mobile
// Draw a rectangle in an element of "LIST_Shape" list box
// The rectangle background is light green and the border is light yellow
ListAdd(LIST_Shape, gRectangle(0, 0, 25, 18, LightGreen, LightYellow))
Syntax
<Result> = gRectangle(<X1> , <Y1> , <X2> , <Y2> [, <Background Color> [, <Line Color>]])
<Result>: Character string
Sequence of characters used to draw a rectangle.
WINDEVWindows MobileUniversal 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 top left corner of the rectangle to draw.
<Y1>: Real
Y coordinate (in pixels) of the top left corner of the rectangle to draw.
<X2>: Real
X coordinate (in pixels) of the bottom right corner of the rectangle to draw.
<Y2>: Real
Y coordinate (in pixels) of the bottom right corner of the rectangle to draw.
<Background Color>: Integer or constant (optional)
Background color of rectangle. This color corresponds 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 rectangle line. This color corresponds 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 top left corner of the element where the rectangle will be drawn (top left corner of the row found in the List Box or Combo Box control for example).

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

Until version 21, gRectangle was available in the wdxxxobj component. From version 22, this function is now available in the wdxxxmdl component.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230mdl.dll
Windows Mobile wp230mdl.dll
Linux wd230mdl.so
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment