PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • 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 optional event "Mouse Rollover" of the Table control.
// Declare the variables
MyRow is int
MyColumn is string

// Retrieve the subscripts 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 is used to display a custom tooltip for each cell of an Image column in a Table control.

This code must be inserted into the optional event "Mouse rollover" 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
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment