ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Controls, pages and windows / Table functions
  • 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.
// Déclaration des variables
MaLigne is int
MaColonne is string

// Récupération des indices de la cellule en cours de survol
MaLigne = TableInfoXY(TABLE_Table1, tiLineNumber, MouseXPos(), MouseYPos())
MaColonne = TableInfoXY(TABLE_Table1, tiColNumber, MouseXPos(), MouseYPos())

IF MaLigne = -1 THEN RETURN
IF MaColonne = "" THEN RETURN

// Changement du curseur si la cellule est vide
IF TABLE_Table1[MaLigne][MaColonne] <> "" 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.
nLigne is int
nLigne = TableInfoXY(TABLE_Table1, tiLineNumber, MouseXPos(), MouseYPos())

SWITCH nLigne
	CASE 1
		TABLE_Table1.COL_Colonne1..ToolTip = "Bulle de l'Image 1"
	CASE 2
		TABLE_Table1.COL_Colonne1..ToolTip = "Bulle de l'Image 2"
	CASE 3
		TABLE_Table1.COL_Colonne1..ToolTip = "Bulle de l'Image 3"
	OTHER CASE
END
Minimum version required
  • Version 15
This page is also available for…
Comments
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 Apr. 2024

Last update: 03/28/2025

Send a report | Local help