ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Dashboard functions
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
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.
Example
// -- "Mouse hover" event of a Dashboard control
// Gets the hovered index
nIndex is int = DashInfoXY(MySelf, MouseXPos(), MouseYPos())
 
// No action if the hovered widget is the same as before
IF gnHoverIndex = nIndex THEN RETURN
 
// Stores the hovered index
gnHoverIndex = nIndex
 
// Displays an information about the hovered widget
SWITCH gnHoverIndex
// No widget is hovered
CASE 0: STC_Hover = "No widget is hovered"
 
// A widget is hovered
OTHER CASE: STC_Hover = ...
StringBuild("Hovered widget: %1 (Index: %2 | Source internal win: %3)", ...
gFontBold(True) + DASH_Dashboard[gnHoverIndex].Caption + ...
gFontBold(False), gFontBold(True) + gnHoverIndex + gFontBold(False), ...
gFontBold(True) + DASH_Dashboard[gnHoverIndex].SourceWindow + ...
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:
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: wd290obj.dll
Minimum version required
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/22/2023

Send a report | Local help