ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Shape control
  • Shape control overview
  • 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 change the angle of an arrow in the window editor
  • Moving the ends of an arrow programmatically
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Shape control overview

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 reports).
  • Diamond (this type of shape is not available in reports).
  • Arrow (this type of shape is not available in reports).
  • Line.
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. Select the type of shape you want to create and its properties (line thickness, etc.).
  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 onwards, Arrow, Ellipsis and Line shapes use GDI+ framework: this reduces the effects of aliasing.. 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.
WINDEV

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 where you want to create the control.
  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 change the angle of an arrow in the window editor

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

Moving the ends of an arrow programmatically

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

Last update: 09/24/2024

Send a report | Local help