[Gambas-user] Re: Treeview data
GuruLounge - MailLists
maillists at ...1367...
Sat Feb 25 20:00:29 CET 2006
That worked! You just have to add the event subs yourself, e.g.
public sub mytree_click()
print "tree clicked!"
end
Another question is how do you create this object on a form but from a
module -- as I generally create the majority of my procedures in a main
module or other modules. I only code in forms when necessary.
I can create the treeview on a form via a module but I can't access any
events and can only access properties for the treeview from the module,
not the form.
And most importantly, how do I create a new property (string or
otherwise) for a specific key, not just the treeview class itself.
Thanx,
Jeff
On Sat, 2006-02-25 at 18:11 +0100, Benoit Minisini wrote:
> 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,
>
--
.^.
/V\
/( )\
^^-^^
Linux Advocate
More information about the User
mailing list