Sorry about that. I thought that when you said;

"This is the default behaviour of ListBoxes on Windows."

You were referring to the listboxes in RB and that RB does this for windows
already but not Mac.

Anyways, I am not sure but maybe the Windows Functionality Suite lets you
show HelpTags/ToolTips on windows.

http://www.aaronballman.com/programming/REALbasic/Win32FunctionalitySuite.ph
p

Once you have your help tags, in the mouse over event of the listboxes put
this code. (it may need a few changes, I am taking it from a listbox
subclass that does other things as well and I haven't fully tested it)

Dim I As Integer
Dim column, textwidth As Integer
Dim curtext as string


  For i = 0 to me.ColumnCount - 1
    If X + me.ScrollPositionX < width + me.Column(i).WidthActual then
     
      Exit
    Else
      width = width + me.Column(i).WidthActual
    End if
  Next
If I <= Me.ColumnCount Then
    CurText = Me.Cell(row,column)
    TextWidth = p.Graphics.StringWidth(CurText)//the current rows text
    
    If TextWidth > Me.Column(i).WidthActual Then
     
    //SHOW YOUR HELP TAG HERE with x/y + rowheight coordinates and tell it
to show curtext
    End
End

You can always call a timer which delays the help tag for a short period so
that it does not always appear immediately.

Also, if you can not find code to create a helptag/tooltip on windows, it
would not be so hard to do this yourself. Let me know if you run into
problems here.


HTH,

--
Paul Levine
http://TryBeta.com
Find Reliable Beta Testers

> 
> Hi Paul,
> 
> That's not so easy as I ONLY want to show the help tag if cell content
> is truncated (with ...). I've already developed a solution that seems
> to be working fine, but needs some adjusts.
> 
> And BTW, I'm on Windows and Charlie's example is for MAC - anyway
> thanks for the link ;-)
> 
> Carlos
> 
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
> 
> Search the archives of this list here:
> <http://support.realsoftware.com/listarchives/lists.html>


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to