[Gambas-user] Listitem text as tootip

Stefano Palmeri rospolosco at ...152...
Sat Feb 2 17:45:24 CET 2008


Alle 00:14, sabato 2 febbraio 2008, MaxVK ha scritto:
> Hi there.
>
> (Many) years ago as a VB developer I used code that converted the text of
> the listbox item under the mouse into the tooltip for the listbox itself,
> making it easier to read items that are too long for the width of the
> listbox. I know that Gambas lists can scroll horizontally, allowing you to
> view those items, but Id still like to implement the tooltip as well.
>
> Is there any way to do this in Gambas2 (2.0.0)
>
> Thanks
>
> Max

I don't think you can do it with listbox (unless you make
some magic with mouse position). But I'm not sure.

Use the ListView control instead, which automagically does 
what you're asking. Example attached.

Stefano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: listview-0.0.1.tar.gz
Type: application/x-tgz
Size: 7732 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20080202/a6bbeeba/attachment.bin>


More information about the User mailing list