ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Shape control
  • Overview of Shape control
  • Control of a report or window
  • Creating a Shape control
  • Creating a Shape control in the window editor
  • Creating a Shape control in the report editor
  • Tips
  • How to modify the angle of an arrow in the window editor
  • Moving the extremities of an arrow through programming
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
Overview of Shape control

Control of a report or window

The Shape control allows you to create geometric shapes in your windows and reports:
  • Rectangle.
  • Ellipse (this type of shape is not available in the reports).
  • Diamond (this type of shape is not available in the reports).
  • Arrow (this type of shape is not available in the reports).
  • Line.
WEBDEV - Server codeUniversal Windows 10 AppiPhone/iPad The Shape control is available in the report editor only.
Creating a Shape control
WINDEVJava

Creating a Shape control in the window editor

To create a Shape control in the window editor:
  1. On the "Creation" tab, in the "Other controls" group, click "Shape".
  2. Click at the desired location to create the control. The shape creation wizard starts. Choose the shape to create and its characteristics (line thickness, ...).
  3. Validate the shape creation.
To view the characteristics of the control, select "Description" in the context menu.
Remarks:
  • To directly create a specific shape, on the "Creation" tab, in the "Other controls" group, expand "Shape" and select the desired shape.
  • From version 12, the Arrow, Ellipse and Line shapes use the GDI+ framework: therefore, the "jagged" effects are reduced. If your window contains Shape controls that have been created with an earlier version, this new drawing mode is automatically applied.
  • In the window editor, you can set a background image for the Rectangle, Ellipse and Diamond shapes ("Background image" option in the "Details" tab of the control description window).
  • WINDEV In the window editor, ShapePolygon is used to create a free shape.
WINDEVWEBDEV - Server codeReports and QueriesUniversal Windows 10 AppiPhone/iPad

Creating a Shape control in the report editor

To create a Shape control in the report editor:
  1. On the "Creation" tab, in the "Visual" group, click "Shape" and select the desired shape.
  2. Click the position where the control will be created in the report.
  3. To modify the shape, open the control description window ("Description" in the context menu of the control) and choose the desired shape in the "General" tab.
Tips
WINDEV

How to modify the angle of an arrow in the window editor

To modify the angle of an arrow in the editor, you must:
  1. Select the extremity of the arrow with the mouse.
  2. Keep the left mouse button down.
  3. Move the mouse until you get the desired angle.
WINDEV

Moving the extremities of an arrow through programming

To move the extremities of an arrow, use the ArrowXXX functions:
  • ArrowStart is used to position the source extremity of the arrow.
  • ArrowEnd is used to position the end extremity of arrow.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/23/2022

Send a report | Local help