PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Rule used for calculating cells
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
Changes the position of a widget found in a Dashboard control. This widget is already configured or displayed.
Reminder: A widget corresponds to:
  • WEBDEV - Server codeWEBDEV - Browser code an internal page.
Example
// Déplace le Widget 2 en haut du champ Tableau de bord
TDB_MonTableauDeBord.DéplaceWidget(2, 1, 1)
Syntax

Moving a widget identified by its subscript Hide the details

<Dashboard control>.MoveWidget(<Widget subscript> , <X> , <Y> [, <Options>])
<Dashboard control>: Control name
Name of Dashboard control to use.
<Widget subscript>: Integer
Subscript of widget to use. This subscript 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.
<X>: Integer
Horizontal position of widget in number of cells or in pixels. The first cell is cell [1, 1]. The value in pixels is rounded to correspond to an integer number of cells.
<Y>: Integer
Vertical position of widget in number of cells or in pixels. The first cell is cell [1, 1]. 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:
dashNoReorganizationMoves the Widget without reorganizing the adjacent widgets.
Caution: Using the dashNoReorganization constant may produce an incorrect display (with overlapping 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 when moving the widget is a number of cells.
dashUnitPixelThe unit used when moving the widget 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.DéplaceWidget(1, 80, 80, tdbUnitéPixel)
// Le Widget se positionnera dans la case 1 x 1
 
TDB_FuseauxHoraires.DéplaceWidget(1, 160, 200, tdbUnitéPixel)
// Le Widget se positionnera dans la case 2 x 2
 
TDB_FuseauxHoraires.DéplaceWidget(1, 211, 211, tdbUnitéPixel)
// Le Widget se positionnera dans la case 3 x 3
 
TDB_FuseauxHoraires.DéplaceWidget(1, 400, 500, tdbUnitéPixel)
// Le Widget se positionnera dans la case 4 x 5
Component: wd270obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment