[Gambas-user] Listitem text as tootip

MaxVK maximvonk at ...626...
Sat Feb 2 21:43:16 CET 2008


Stefano, thanks very much, that works very well indeed, but I have one more
question now:

When using the ListBox I was able to save the contents to a file like
this...

DIM tItem, tGItems AS String
FOR EACH tItem, IN Object.GetProperty(ListBox1, "list")
  tGItems = tGItems & tItem, & "\n" 
NEXT 
<File.Save ...etc>

However, this does not work with the ListView. Is there perhaps some
comparable method of doing the same thing with a ListView?

Many thanks

Max


Stefano Palmeri wrote:
> 
> 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
> 
>  
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
> 
> 

-- 
View this message in context: http://www.nabble.com/Listitem-text-as-tootip-tp15234877p15247037.html
Sent from the gambas-user mailing list archive at Nabble.com.





More information about the User mailing list