Re: [Gambas-user] Object.Attach & Object.Detach

2008-09-20 Thread Benoit Minisini
On samedi 20 septembre 2008, Kari Laine wrote: > On Sat, Sep 20, 2008 at 8:50 PM, Benoit Minisini < > > [EMAIL PROTECTED]> wrote: > > See Object.Parent(). > > > > Thanks - feeling stupid... > > But when Object.Detach is usable. What is it's purpose in Gambas? > Because now I just changed event-hand

Re: [Gambas-user] Object.Attach & Object.Detach

2008-09-20 Thread Kari Laine
On Sat, Sep 20, 2008 at 8:50 PM, Benoit Minisini < [EMAIL PROTECTED]> wrote: > > See Object.Parent(). > > Thanks - feeling stupid... But when Object.Detach is usable. What is it's purpose in Gambas? Because now I just changed event-handlers. I did not have to call Object.Detach there in between.

Re: [Gambas-user] Object.Attach & Object.Detach

2008-09-20 Thread Benoit Minisini
On samedi 20 septembre 2008, Kari Laine wrote: > On Sat, Sep 20, 2008 at 7:29 PM, Benoit Minisini < > > [EMAIL PROTECTED]> wrote: > > On samedi 20 septembre 2008, Kari Laine wrote: > > > On Sat, Sep 20, 2008 at 5:52 PM, Benoit Minisini < > > > > > > > > > Where do events go then? > > > > They are l

Re: [Gambas-user] Object.Attach & Object.Detach

2008-09-20 Thread Kari Laine
On Sat, Sep 20, 2008 at 7:29 PM, Benoit Minisini < [EMAIL PROTECTED]> wrote: > On samedi 20 septembre 2008, Kari Laine wrote: > > On Sat, Sep 20, 2008 at 5:52 PM, Benoit Minisini < > > > > > > Where do events go then? > > They are lost. As if the object was never attached to anything. > > > Is the

Re: [Gambas-user] Object.Attach & Object.Detach

2008-09-20 Thread Benoit Minisini
On samedi 20 septembre 2008, Kari Laine wrote: > On Sat, Sep 20, 2008 at 5:52 PM, Benoit Minisini < > > [EMAIL PROTECTED]> wrote: > > On samedi 20 septembre 2008, Kari Laine wrote: > > > Hi, > > > > > > I am trying to learn Object.Attach and Object.Detach. I have following > > > code in a little pr

Re: [Gambas-user] Object.Attach & Object.Detach

2008-09-20 Thread Kari Laine
On Sat, Sep 20, 2008 at 5:52 PM, Benoit Minisini < [EMAIL PROTECTED]> wrote: > On samedi 20 septembre 2008, Kari Laine wrote: > > Hi, > > > > I am trying to learn Object.Attach and Object.Detach. I have following > > code in a little program > > > > Object.Attach($hTextBoxView, ME, "TextBoxView"

Re: [Gambas-user] Object.Attach & Object.Detach

2008-09-20 Thread Benoit Minisini
On samedi 20 septembre 2008, Kari Laine wrote: > Hi, > > I am trying to learn Object.Attach and Object.Detach. I have following > code in a little program > > Object.Attach($hTextBoxView, ME, "TextBoxView") > ' Object.Detach($hTextBoxView) > > If object.detach is commented out it works as suppos

[Gambas-user] Object.Attach & Object.Detach

2008-09-20 Thread Kari Laine
Hi, I am trying to learn Object.Attach and Object.Detach. I have following code in a little program Object.Attach($hTextBoxView, ME, "TextBoxView") ' Object.Detach($hTextBoxView) If object.detach is commented out it works as supposed. SUBs in ME handle events. If Object.Attach is also comme