PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
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
Used to find out:
  • whether a widget is found at a given position in a Dashboard control.
  • which widget is found at a given position in a Dashboard control.
Example
// -- Evénement "Survol Souris" d'un champ Tableau de bord
// Récupère l'indice survolé
nIndice est un entier = TDB_TableauDeBord.InfoXY(SourisPosX(), SourisPosY())
 
// Si le widget survolé est le même que précédemment, ne rien faire
SI gnIndiceSurvol = nIndice ALORS RETOUR
 
// Mémorise l'indice survolé
gnIndiceSurvol = nIndice
 
// Affiche une information sur le widget survolée
SELON gnIndiceSurvol
// Aucun widget survolé
CAS 0: LIB_Survol = "Aucun widget n'est survolé"
 
// Un widget est survolé
AUTRE CAS: LIB_Survol = ...
ChaîneConstruit("Widget survolé: %1 (Indice: %2 | Fen interne source: %3)", ...
gPoliceGras(Vrai) + TDB_TableauDeBord[gnIndiceSurvol].Libellé + ...
gPoliceGras(Faux), gPoliceGras(Vrai) + gnIndiceSurvol + gPoliceGras(Faux), ...
gPoliceGras(Vrai) + TDB_TableauDeBord[gnIndiceSurvol].FenêtreSource + ...
gPoliceGras(Faux))
FIN
Syntax
<Result> = <Dashboard control>.InfoXY(<X> , <Y>)
<Result>: Integer
  • Subscript of widget found at the specified position,
  • 0 if no widget is found.
<Dashboard control>: Control name
Name of Dashboard control to use.
<X>: Integer
X coordinate (in pixels) of the Widget in the Dashboard control.
<Y>: Integer
Y coordinate (in pixels) of the Widget in the Dashboard control.
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