|
|
|
|
|
DashInfoXY (Function) In french: TDBInfoXY
Not available
Determines: - 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.
nIndice is int = DashInfoXY(MySelf, MouseXPos(), MouseYPos())
IF gnIndiceSurvol = nIndice THEN RETURN
gnIndiceSurvol = nIndice
SWITCH gnIndiceSurvol
CASE 0 : LIB_Survol = "Aucun widget n'est survolé"
OTHER CASE : LIB_Survol = ...
StringBuild("Widget survolé : %1 (Indice : %2 | Fen interne source : %3)", ...
gFontBold(True) + TDB_TableauDeBord[gnIndiceSurvol].Libellé + ...
gFontBold(False), gFontBold(True) + gnIndiceSurvol + gFontBold(False), ...
gFontBold(True) + TDB_TableauDeBord[gnIndiceSurvol].FenêtreSource + ...
gFontBold(False))
END
Syntax
<Result> = DashInfoXY(<Dashboard control> , <X> , <Y>)
<Result>: Integer - Index of the widget at the specified position,
- 0 if no widget is found.
<Dashboard control>: Control name Name of the Dashboard control to be used. <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:
|
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.
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|