ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Dashboard functions
  • Rule used for calculating cells
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Changes the dimensions of a widget found in a Dashboard control. This widget is already configured or displayed.
Reminder: A Widget corresponds to:
  • WINDEVAndroidiPhone/iPadMac Catalyst an internal window.
  • WEBDEV - Server codeWEBDEV - Browser code an internal page.
Example
// Passe le Widget numéro 1 sur deux colonnes afin d'afficher les détails
TDB_MonTableauDeBord.ChangeTailleWidget(1, 2, 1)
LIB_Détails.Visible = True
Syntax

Resizing a widget identified by its index Hide the details

<Dashboard control>.ResizeWidget(<Widget index> , <Width> , <Height> [, <Options>])
<Dashboard control>: Control name
Name of the Dashboard control to be used.
<Widget index>: Integer
Index of the widget to use. This index corresponds to:
  • the addition number of the widget defined in the window editor or in the page editor.
  • the addition number of widget returned by <Dashboard>.AddWidget.
<Width>: Integer
Width of widget in number of cells or in pixels. The minimum size corresponds to a cell. The value in pixels is rounded to correspond to an integer number of cells.
<Height>: Integer
Height of the widget in number of cells or in pixels. The minimum size corresponds to a cell. The value in pixels is rounded to correspond to an integer number of cells.
<Options>: Optional Integer constant
Allows you to define the unit used and the reorganization mode:
dashNoReorganizationResizes the widget without reorganizing the adjacent widgets.
Caution: Using the constant tdbSansRéorganisation can lead to incorrect display (with overlaid Widgets). When using this constant, it is important to entirely reorganize the Dashboard control with <Dashboard>.ResizeWidget and <Dashboard>.MoveWidget.
dashUnitCell
(Default value)
The unit used for the widget size is a number of cells.
dashUnitPixelThe unit used for the widget size is the pixel.
Remarks

Rule used for calculating cells

Let's see some examples for a widget whose size is equal to 100 px by 100 px with a margin set to 10 px:
TDB_FuseauxHoraires.ChangeTailleWidget(1, 80, 80, dashUnitPixel)
// le widget sera de 1 x 1

TDB_FuseauxHoraires.ChangeTailleWidget(1, 200, 200, dashUnitPixel)
// le widget sera de 2 x 2

TDB_FuseauxHoraires.ChangeTailleWidget(1, 201, 201, dashUnitPixel)
// le widget sera de 3 x 3

TDB_FuseauxHoraires.ChangeTailleWidget(1, 400, 500, dashUnitPixel)
// le widget sera de 4 x 5
Component: wd300obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/20/2024

Send a report | Local help