2 of my 64Bit Mac App Store Apps (mySalesAgent, Update Monitor) showing a “Tooltip” with the full CellText if the CellText is wider than the Cell, but this is not working currently in 64Bit Apps (<https://xojo.com/issue/43004>).
Does anybody know how to workaround this issue please?
The first solution is probably the simplest, as you can position a very small canvas just under the cursor. I used a 20x20 canvas together with this in the ListBox :
Sub MouseMove(X As Integer, Y As Integer)
if me.RowFromXY(X,Y) = 4 then
Canvas1.left = X-10+me.Left
Canvas1.Top = Y-10+me.top
Canvas1.HelpTag = "This is a very long text that won't fit in the cell" // Get the value of Cell()
else
Canvas1.Helptag = ""
Canvas1.Top = -100
end if
End Sub
[quote=254320:@Marco Hof]I think none of the tooltips work on 64-bit OS X Apps as mentioned here .
I ended up subclassing this solution.
Maybe it helps.[/quote]
Thank you @Marco Hof But it does not work in 64Bit
[quote=254319:@Michel Bujardet]I see two possible ways :
Overlay a canvas which will trigger the tooltip,
Use a canvas to draw and show the tooltip
The first solution is probably the simplest, as you can position a very small canvas just under the cursor. I used a 20x20 canvas together with this in the ListBox :
Sub MouseMove(X As Integer, Y As Integer)
if me.RowFromXY(X,Y) = 4 then
Canvas1.left = X-10+me.Left
Canvas1.Top = Y-10+me.top
Canvas1.HelpTag = "This is a very long text that won't fit in the cell" // Get the value of Cell()
else
Canvas1.Helptag = ""
Canvas1.Top = -100
end if
End Sub
Tested in 64 bits, of course.[/quote]
Thank you @Michel Bujardet but it does not show the HelpTag too
That said, if you want instant show, why not simply use a canvas to display ? It is not that difficult to do.[/quote]
I took your Example, set OS X Builds to 64Bits and compiled it (not touching any code). I start it and move the Mouse over the Listbox and wait. Nothing…
But <https://xojo.com/issue/43004> is on Rank 639. I think i will have to wait a bit longer (and i am one of very few Devs who use Tool Tips on 64Bit).
Michel’s solutions works perfectly on 64bit. You must hover over row 4 to make it visible.
Listbox cellhelptags does not (R2015-4.1, as noted in the docs)