PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • New widget
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
Adds and displays a widget (internal window or page) in a Dashboard control.
Caution: The widgets added through programming are not automatically displayed. It is necessary to use the <Dashboard>.InitialConfiguration function before the first display of the Dashboard control.
Versions 20 and later
WEBDEV - Server codeWindows This function is now available in WEBDEV Server.
WEBDEV - Server codeLinux This function is now available for WEBDEV sites in Linux.
New in version 20
WEBDEV - Server codeWindows This function is now available in WEBDEV Server.
WEBDEV - Server codeLinux This function is now available for WEBDEV sites in Linux.
WEBDEV - Server codeWindows This function is now available in WEBDEV Server.
WEBDEV - Server codeLinux This function is now available for WEBDEV sites in Linux.
Example
Versions 20 and later
WEBDEV - Server code
IndWgt est un entier
// Ajoute un Widget qui attend des paramètres
IndWgt = TDB_FuseauxHoraires.AjouteWidget(PI_Heure, "Heure" + DonneIdentifiant(), ...
"Paris", +0)
TDB_FuseauxHoraires.ConfigurationInitiale(IndWgt)
// Ajoute un Widget qui attend des paramètres
IndWgt = TDB_FuseauxHoraires.AjouteWidget(PI_Heure, "Heure" + DonneIdentifiant(), ...
"Honolulu", -12)
TDB_FuseauxHoraires.ConfigurationInitiale(IndWgt)
// Ajoute un Widget qui attend des paramètres
IndWgt = TDB_FuseauxHoraires.AjouteWidget(PI_Heure, "Heure" + DonneIdentifiant(), ...
"Sydney", +9)
TDB_FuseauxHoraires.ConfigurationInitiale(IndWgt)
New in version 20
WEBDEV - Server code
IndWgt est un entier
// Ajoute un Widget qui attend des paramètres
IndWgt = TDB_FuseauxHoraires.AjouteWidget(PI_Heure, "Heure" + DonneIdentifiant(), ...
"Paris", +0)
TDB_FuseauxHoraires.ConfigurationInitiale(IndWgt)
// Ajoute un Widget qui attend des paramètres
IndWgt = TDB_FuseauxHoraires.AjouteWidget(PI_Heure, "Heure" + DonneIdentifiant(), ...
"Honolulu", -12)
TDB_FuseauxHoraires.ConfigurationInitiale(IndWgt)
// Ajoute un Widget qui attend des paramètres
IndWgt = TDB_FuseauxHoraires.AjouteWidget(PI_Heure, "Heure" + DonneIdentifiant(), ...
"Sydney", +9)
TDB_FuseauxHoraires.ConfigurationInitiale(IndWgt)
WEBDEV - Server code
IndWgt est un entier
// Ajoute un Widget qui attend des paramètres
IndWgt = TDB_FuseauxHoraires.AjouteWidget(PI_Heure, "Heure" + DonneIdentifiant(), ...
"Paris", +0)
TDB_FuseauxHoraires.ConfigurationInitiale(IndWgt)
// Ajoute un Widget qui attend des paramètres
IndWgt = TDB_FuseauxHoraires.AjouteWidget(PI_Heure, "Heure" + DonneIdentifiant(), ...
"Honolulu", -12)
TDB_FuseauxHoraires.ConfigurationInitiale(IndWgt)
// Ajoute un Widget qui attend des paramètres
IndWgt = TDB_FuseauxHoraires.AjouteWidget(PI_Heure, "Heure" + DonneIdentifiant(), ...
"Sydney", +9)
TDB_FuseauxHoraires.ConfigurationInitiale(IndWgt)
Syntax
<Result> = <Dashboard control>.AddWidget(<Widget> , <Caption> [, <Parameter 1> [... [, <Parameter N>]]])
<Result>: Integer
Subscript of added element. This subscript can be used to handle the widget.
<Dashboard control>: Control name
Name of Dashboard control to use.
<Widget>: Name of internal window or internal page
  • Versions 20 and later
    WEBDEV - Server code Name of the internal page that must be added into the Dashboard control.
    New in version 20
    WEBDEV - Server code Name of the internal page that must be added into the Dashboard control.
    WEBDEV - Server code Name of the internal page that must be added into the Dashboard control.
<Caption>: Character string (with quotes)
Widget caption. This caption will be displayed in the context menu of the Dashboard control and it will allow the user to handle the widget.
<Parameter 1>: Type of value sent to the window or page (optional)
First parameter that will be passed to the "Global declarations" event of the internal window or internal page to open. This parameter is passed by reference and it is considered as being a variable global to the internal window or internal page.
Caution: Only the simple types are available.
<Parameter N>: Type of value sent to the window or page (optional)
Nth parameter that will be passed to the "Global declarations" event of the internal window or internal page to open. This parameter is passed by reference and it is considered as being a variable global to the internal window or internal page.
Caution: Only the simple types are available.
Remarks

New widget

The widget is declared in addition to the widgets defined in the description of Dashboard control.
This widget can be made visible:
  • by using <Dashboard>.InitialConfiguration before the first display.
  • by the end user via the popup menu.
  • by using the following syntax:
    TDB_NomTableauBord[Indice].Visible = Vrai
    Where <Subscript> is the number of the Widget returned by the <Dashboard>.AddWidgetfunction.
Related Examples:
WD Dashboard Training (WINDEV): WD Dashboard
[ + ] The "WD Dashboard" example is an educational example for using the Dashboard control.
This example explains how to:
- handle the control in "edit" mode,
- save/load a configuration,
- configure the control (initial configuration, addition/deletion of widgets, ...),
- refresh a widget,
- etc.
Component: wd270obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment