PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Returned subscript
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
Returns, for a given position in a List Box control (standard list box or listview), the subscript of the line (or image) corresponding to this position.
Notes:
  • This function cannot be used with a Combo Box control or with a Carousel control.
  • ListInfoXY can be used on:
    • a browsing or memory List Box control,
    • a single-selection or multi-selection ListBox control.
Versions 15 and later
Android This function is now available for the Android applications.
New in version 15
Android This function is now available for the Android applications.
Android This function is now available for the Android applications.
Versions 16 and later
WINDEVLinux This function is now available for the WINDEV applications in Linux.
New in version 16
WINDEVLinux This function is now available for the WINDEV applications in Linux.
WINDEVLinux This function is now available for the WINDEV applications in Linux.
Example
// -- Rollover code of control
// Display a tooltip when list elements are hovered by the mouse
Subscript is int
Subscript = ListInfoXY(LIST_List1, tiLineNumber, MouseXPos(), MouseYPos())
IF Subscript > 0 THEN
LIST_List1..ToolTip = LIST_List1[Subscript]
END
Syntax
<Result> = ListInfoXY(<List Box Control> , <Type of Information> , <X> , <Y>)
<Result>: Character string or integer
  • Requested information.
  • -1 if there is no line subscript or if the specified position corresponds to an empty line.
<List Box Control>: Control name
Name of control to use:
  • List Box control,
  • ListView control.
If this parameter corresponds to an empty string (""), ListInfoXY handles the list to which the current process belongs.
<Type of Information>: Integer constant
Requested type of information:
tiLineNumber
  • Line number for a standard list box,
  • Image number for a listview.
tiOriginScreenBy default, (0,0) corresponds to line 1 (the scrollbars being located at the origin).
If tiOriginScreen is associated with the previous constant, (0,0) corresponds to the origin of the screen.
This constant cannot be used on its own.
<X>: Integer
X coordinate (in pixels) to study. This coordinate is given in relation to the List Box control (if the oriScreenOrigin constant is not specified).
<Y>: Integer
Y coordinate (in pixels) to study. This coordinate is given in relation to the List Box control (if the oriScreenOrigin constant is not specified).
Remarks

Returned subscript

The line subscript returned by ListInfoXY corresponds to the real line subscript (and not to the display subscript). This subscript takes into account the lines already displayed but no longer visible in the List Box control.
Furthermore, if the scrollbars are used, ListInfoXY takes this move into account.
Components
WINDEVReports and Queries wd230obj.dll
Windows Mobile wp230obj.dll
Java wd230java.jar
Linux wd230obj.so
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment