PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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.
Versions 20 and later
WEBDEV - Browser code This function is now available in Browser code.
New in version 20
WEBDEV - Browser code This function is now available in Browser code.
WEBDEV - Browser code This function is now available in Browser code.
Versions 22 and later
iPhone/iPad This function is now available for iPhone/iPad applications.
Android This function is now available for Android applications.
New in version 22
iPhone/iPad This function is now available for iPhone/iPad applications.
Android This function is now available for Android applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Android This function is now available for Android applications.
Example
// -- "Mouse Rollover" event of a Dashboard control
// Gets the hovered subscript
nSubscript is int = DashInfoXY(MySelf, MouseXPos(), MouseYPos())
 
// No action if the hovered widget is the same as before
IF gnRolloverSubscript = nSubscript THEN RETURN
 
// Stores the hovered subscript
gnRolloverSubscript = nSubscript
 
// Displays an information about the hovered widget
SWITCH gnRolloverSubscript
// No widget is hovered
CASE 0: STC_Rollover = "No widget is hovered"
 
// A widget is hovered
OTHER CASE: STC_Rollover = ...
StringBuild("Hovered widget: %1 (Subscript: %2 | Source internal win: %3)", ...
gFontBold(True) + DASH_Dashboard[gnRolloverSubscript]..Caption + ...
gFontBold(False), gFontBold(True) + gnRolloverSubscript + gFontBold(False), ...
gFontBold(True) + DASH_Dashboard[gnRolloverSubscript]..SourceWindow + ...
gFontBold(False))
END
Syntax
<Result> = DashInfoXY(<Dashboard control> , <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 : wd250obj.dll
Minimum version required
  • Version 19
This page is also available for…
Comments
Click [Add] to post a comment