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 Tabla
  • Changing the mouse cursor
  • Changing the mouse cursor
TableInfoXY (Example)
Changing the mouse cursor
This code example is used to change the mouse cursor when hovering empty cells. This code must be inserted into the "Mouse hover" optional event of the Table control.
// Declare the variables
MyRow is int
MyColumn is string

// Retrieve the indexes of the cell currently hovered
MyRow = TableInfoXY(TABLE_Table1, tiLineNumber, MouseXPos(), MouseYPos())
MyColumn = TableInfoXY(TABLE_Table1, tiColNumber, MouseXPos(), MouseYPos())

IF MyRow = -1 THEN RETURN
IF MyColumn = "" THEN RETURN

// Change the cursor if the cell is empty
IF TABLE_Table1[MyRow][MyColumn] <> "" THEN
	MySelf..MouseCursor = curCross
ELSE
	MySelf..MouseCursor = curArrow
END
Changing the mouse cursor
This code example displays a custom tooltip for each cell of an Image control column in a Table control.

This code must be inserted into the "Mouse hover" optional event of the Table control.
nRow is int
nRow = TableInfoXY(TABLE_Table1, tiLineNumber, MouseXPos(), MouseYPos())
 
SWITCH nRow
CASE 1
TABLE_Table1.COL_Column1..Tooltip = "Tooltip for Image 1"
CASE 2
TABLE_Table1.COL_Column1..Tooltip = "Tooltip for Image 2"
CASE 3
TABLE_Table1.COL_Column1..Tooltip = "Tooltip for Image 3"
OTHER CASE
END
Versión mínima requerida
  • Versión 15
Esta página también está disponible para…
Comentarios
Dica de ouro
Prezados

Para pegar um registro id de um browser table grid tem 2 formas:

Crie uma var global da janela:
GNID is 8-byte int = 0


A) Em Code evento
SELECT ROW

GNID = TableNameGrid.COL_myID



B) Em Code evento
SELECT ROW

Nx is int = Tableinfoxy(TableNameGrid, tiLineNumber, MouseXPos(), MouseYPos())

If nx > 0

GNID = TableNameGrid[nx].COL_myID

End
Boller
16 04 2024

Última modificación: 28/03/2025

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