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
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
Modifies the configuration of a Dashboard control (defined in the editor) before its first display. This allows you to configure and to take into account the widgets declared in programming by <Dashboard>.AddWidget.
Ejemplo
AndroidiPhone/iPadMac Catalyst
// -- Initialize DASH_Dashboard
// Adds information to the initial configuration:
// - key numbers for the last 3 months
nX = 1 ; nY = 3
FOR i = 1 TO 3
	// Adds the widget
	nIndex = DASH_Dashboard.AddWidget(IW_Widget_KeyNumber, ...
			StringBuild("Key numbers for %1", DateToString(dDate, "Mmm YYYY")), ...
			dDate)
	// Configures the widget (placed on the left)
	DASH_Dashboard.InitialConfiguration(nIndex, nX, nY)
	// The next one will be lower
	nY++
	dDate.Month--
END
// - stock alert
// Adds the widget
nIndex = DASH_Dashboard.AddWidget(IW_Widget_StockAlert, "Stock alert")
// Configures the widget (placed on the left) 
DASH_Dashboard.InitialConfiguration(nIndex, 5, 1)
Sintaxis

Initial configuration: manipulate the Widget by its index Ocultar los detalles

<Dashboard control>.InitialConfiguration(<Widget index> [, <X> [, <Y> [, <Width> [, <Height>]]]])
<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 widget defined in the window editor or in the page editor.
  • the addition number of widget returned by <Dashboard>.AddWidget.
<X>: Optional integer
Horizontal position of widget in number of cells.
If [<X>, <Y>] are not specified or if their value is equal to [0,0], the widget is positioned on the first free location.
The first cell is cell [1, 1].
<Y>: Optional integer
Vertical position of widget in number of cells.
If [<X>, <Y>] are not specified or if their value is equal to [0,0], the widget is positioned on the first free location.
The first cell is cell [1, 1].
<Width>: Optional integer
Width of widget in number of cells.
If [<Width>, <Height>] are not specified or if their value is equal to [0, 0]:
  • during the first call to <Dashboard>.InitialConfiguration, the widget size corresponds to the size of source internal window or page (at least 1 cell).
  • during the next calls to <Dashboard>.InitialConfiguration, the widget size corresponds to the size defined during the first call.
<Height>: Optional integer
Height of widget in number of cells.
If [<Width>, <Height>] are not specified or if their value is equal to [0, 0]:
  • during the first call to <Dashboard>.InitialConfiguration, the widget size corresponds to the size of source internal window or page (at least 1 cell).
  • during the next calls to <Dashboard>.InitialConfiguration, the widget size corresponds to the size defined during the first call.

Initial configuration: manipulate the Widget by name Ocultar los detalles

<Dashboard control>.InitialConfiguration(<Widget> [, <X> [, <Y> [, <Width> [, <Height>]]]])
<Dashboard control>: Control name
Name of the Dashboard control to be used.
<Widget>: Name of the internal window or page
  • AndroidiPhone/iPadMac Catalyst Name of the internal window to be used.
<X>: Optional integer
Horizontal position of widget in number of cells.
If [<X>, <Y>] are not specified or if their value is equal to [0,0], the widget is positioned on the first free location.
The first cell is cell [1, 1].
<Y>: Optional integer
Vertical position of widget in number of cells.
If [<X>, <Y>] are not specified or if their value is equal to [0,0], the widget is positioned on the first free location.
The first cell is cell [1, 1].
<Width>: Optional integer
Width of widget in number of cells.
If [<Width>, <Height>] are not specified or if their value is equal to [0, 0]:
  • during the first call to <Dashboard>.InitialConfiguration, the widget size corresponds to the size of source internal window or page (at least 1 cell).
  • during the next calls to <Dashboard>.InitialConfiguration, the widget size corresponds to the size defined during the first call
<Height>: Optional integer
Height of widget in number of cells.
If [<Width>, <Height>] are not specified or if their value is equal to [0, 0]:
  • during the first call to <Dashboard>.InitialConfiguration, the widget size corresponds to the size of source internal window or page (at least 1 cell).
  • during the next calls to <Dashboard>.InitialConfiguration, the widget size corresponds to the size defined during the first call
Observaciones
  • An error occurs if <Dashboard>.InitialConfiguration is called after the initialization of the Dashboard control.
  • The widgets configured by <Dashboard>.InitialConfiguration will be loaded and made visible after the execution of the initialization processes.
  • The <Dashboard>.InitialConfiguration function is not taken into account in the following cases:
    • The "Recordar configuración de Widgets" option is checked in the Dashboard control description window ("Details" tab) and the user makes the widget invisible.
    • The user made the widget invisible and the configuration of the Dashboard control was saved then reloaded.
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: 27/03/2025

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