AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones List Box
  • Returned index
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Returns the index of the row (or image) at a given position in a List Box or ListView control.
Remarks:
  • This function cannot be used with a Combo Box control or with a Carousel control.
  • <List Box>.InfoXY can be used on:
    • a List Box control file or memory.
    • a single-selection or multi-selection List Box control.
Ejemplo
// -- Rollover code of control 
// Display a tooltip when the elements in a List Box control are hovered
Index is int 
Index = LIST_List1.InfoXY(tiLineNumber, MouseXPos(), MouseYPos())
IF Index > 0 THEN
LIST_List1.ToolTip = LIST_List1[Index] 
END
Sintaxis
<Result> = <List Box control>.InfoXY(<Type of information> , <X> , <Y>)
<Result>: Cadena de caracteres o número entero
  • Requested information.
  • -1 if there is no row index or if the specified position corresponds to an empty row.
<List Box control>: Nombre del control
Name of control to use:
  • List Box control,
  • ListView control.
<Type of information>: Constante de tipo Integer
Type of information requested:
tiLineNumber
  • Row number for a standard List Box control,
  • Image number for a ListView control..
tiOriginScreenBy default, (0, 0) corresponds to row 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>: Integro
X-coordinate (in pixels) to be analyzed. This coordinate is given in relation to the List Box control (if the oriScreenOrigin constant is not specified).
<Y>: Integro
Y-coordinate (in pixels) to be analyzed. This coordinate is given in relation to the List Box control (if the oriScreenOrigin constant is not specified).
Observaciones

Returned index

The index returned by <List Box>.InfoXY corresponds to the real index of the row (not the index displayed). This index takes into account the row already displayed but no longer visible in the List Box control.
Furthermore, if the scrollbars are used, <List Box>.InfoXY takes this move into account.
Componente: wd300obj.dll
Versión mínima requerida
  • Versión 23
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 21/09/2024

Señalar un error o enviar una sugerencia | Ayuda local