B4J Question TableView or jTableViewExtended Tooltip on mouseover

imbault

Well-Known Member
Licensed User
Longtime User
Hi,

Is it possible to show a tooltip (message) when the mouse pointer is moved onto an cell ?

Thanks a lot
 

PatrikCavina

Active Member
Licensed User
You can insert labels in tableView and assign for each of them own tooltip message.
B4X:
    For i = 0 To 20
        Dim row(3) As Object
        For j = 0 To 2
            Dim lb As Label
            lb.Initialize("")
            lb.Text = "Cell number: " & j
            lb.TooltipText = "I'm in row: " & i
            row(j) = lb
        Next
        TableView1.Items.Add(row)
Next
 
Upvote 0

imbault

Well-Known Member
Licensed User
Longtime User
You can insert labels in tableView and assign for each of them own tooltip message.
B4X:
    For i = 0 To 20
        Dim row(3) As Object
        For j = 0 To 2
            Dim lb As Label
            lb.Initialize("")
            lb.Text = "Cell number: " & j
            lb.TooltipText = "I'm in row: " & i
            row(j) = lb
        Next
        TableView1.Items.Add(row)
Next
You're right, thank you

Patrick
 
Upvote 0
Top