ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / Properties associated with windows, pages and controls
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
The ElementWidth property is used to:
  • Find out or modify the width of the cells in a Dashboard control.
Remarks:
  • The width of a cell found in a Dashboard control is defined in the "Details" tab of the description of a Dashboard control.
  • WEBDEV - Server code This property is available for Dashboard controls only.
Example
ORG_Main.ElementWidth = 200
ORG_Main.ElementHeight = 100
 
IF CBOX_Zoom = True THEN
ORG_Main.ElementWidth = 400
ORG_Main.ElementHeight = 200
END
// Reduce the height of all cells in the Dashboard control
IF DASH_Dashboard.ElementHeight > 50 THEN
DASH_Dashboard.ElementHeight = 50
END
Syntax

Finding out the width of elements or cells Hide the details

<Result> = <Control used>.ElementWidth
<Result>: Integer
  • Width (in pixels) of the cells found in the specified Dashboard control.
<Control used>: Control name
  • Name of the Dashboard control to be used.

Modifying the width of the elements or cells Hide the details

<Control used>.ElementWidth = <New width>
<Control used>: Control name
  • Name of the Dashboard control to be used.
<New width>: Real
  • New width (in pixels) of cells found in the specified Dashboard control.
Remarks
The margin between the elements is added to the width of the elements.
Minimum version required
  • Version 17
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/07/2022

Send a report | Local help