AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones Cuadro de mando
  • Rule used for calculating cells
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Changes the dimensions of a widget found in a Dashboard control. This widget is already configured or displayed.
Reminder: A Widget corresponds to:
  • AndroidiPhone/iPadMac Catalyst an internal window.
Ejemplo
// Places the widget #1 on two columns to display the details
DASH_MyDashboard.ResizeWidget(1, 2, 1)
STC_Details.Visible = True
Sintaxis

Cambiar el tamaño de un widget identificado por su índice Ocultar los detalles

<Dashboard control>.ResizeWidget(<Widget index> , <Width> , <Height> [, <Options>])
<Dashboard control>: Nombre del control
Name of the Dashboard control to be used.
<Widget index>: Integro
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>: Integro
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>: Integro
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>: Constante opcional de tipo Integer
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.
Observaciones

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:
DASH_TimeZones.ResizeWidget(1, 80, 80, dashUnitPixel)
// the widget will be set to 1 x 1
 
DASH_TimeZones.ResizeWidget(1, 200, 200, dashUnitPixel)
// the widget will be set to 2 x 2
 
DASH_TimeZones.ResizeWidget(1, 201, 201, dashUnitPixel)
// the widget will be set to 3 x 3
 
DASH_TimeZones.ResizeWidget(1, 400, 500, dashUnitPixel)
// the widget will be set to 4 x 5
Componente: wd300obj.dll
Versión mínima requerida
  • Versión 23
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 21/09/2024

Señalar un error o enviar una sugerencia | Ayuda local