[Gambas-user] Re: Treeview data

Benoit Minisini gambas at ...1...
Sat Feb 25 18:11:23 CET 2006


On Saturday 25 February 2006 16:41, Rohnny Stormo wrote:
> <You create a class, and you start it with 'INHERITS TreeView'. Then you
> can <instanciate this class with NEW, and use it exactly like a TreeView.
> But you <can add methods, properties, or even overload them as you need.
> <
> <To fit your need, I could add a 'Tag' property to each view items. I will
> see <if I will do that... Not sure :-)
> <
> <Regards,
> <
> <--
> <Benoit Minisini
>
> How to activate the click event and the other events.
> If I have understod you correct. I make a new class and ex call it
> mytreeview Just the following in the class
>
> INHERITS TreeView
>
> public MyTestString as string
>
> From my form I do as this
>
> public myTree as new mytreeview(me)

public myTree as MyTreeView
myTree = new mytreeview(me) AS "myTree"

If you don't give an event name, you will never get events!

Regards,

-- 
Benoit Minisini





More information about the User mailing list