PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Ruse used for calculating the cells
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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/iPad an internal window.
  • WEBDEV - Server codeWEBDEV - Browser code an internal page.
Versions 22 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
Android This function is now available for the Android applications.
New in version 22
iPhone/iPad This function is now available for the iPhone/iPad applications.
Android This function is now available for the Android applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Android This function is now available for the Android applications.
Example
// Places the current widget on two columns to display the details
DashResizeWidget(2, 1)
STC_Details..Visible = True
Syntax

Resizing the current widget Hide the details

DashResizeWidget(<Width> , <Height> [, <Options>])
<Width>: Integer
Width of current 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.
The widget used corresponds to the control to which the current process belongs (widget or control belonging to the widget).
<Height>: Integer
Height of current 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.
The widget used corresponds to the control to which the current process belongs (widget or control belonging to the widget).
<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 dashNoReorganization constant may produce an incorrect display (with stacked widgets). When using this constant, it is important to entirely reorganize the Dashboard control with DashResizeWidget and DashMoveWidget.
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.

Resizing a wigdet identified by its subscript Hide the details

DashResizeWidget(<Dashboard Control> , <Widget Subscript> , <Width> , <Height> [, <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 DashAddWidget.
<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 dashNoReorganization constant may produce an incorrect display (with stacked widgets). When using this constant, it is important to entirely reorganize the Dashboard control with DashResizeWidget and DashMoveWidget.
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

Ruse used for calculating the 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:
DashResizeWidget(DASH_TimeZones, 1, 80, 80, dashUnitPixel)
// the widget will be set to 1 x 1

DashResizeWidget(DASH_TimeZones, 1, 200, 200, dashUnitPixel)
// the widget will be set to 2 x 2

DashResizeWidget(DASH_TimeZones, 1, 201, 201, dashUnitPixel)
// the widget will be set to 3 x 3

DashResizeWidget(DASH_TimeZones, 1, 400, 500, dashUnitPixel)
// the widget will be set to 4 x 5
Components
WINDEVReports and Queries wd230obj.dll
WEBDEV - Server code wd230page.dll
WEBDEV - Browser code WDJS.DLL
Linux wd230obj.so
Android wd230android.jar
Minimum required version
  • Version 20
This page is also available for…
Comments
Click [Add] to post a comment