Re: [Gambas-user] Catching an Event from an Object in another Class

2011-06-24 Thread Fabien Bodard
2011/6/24 tobias : > hi, > >> PUBLIC SUB _new(hSubject AS Editor) >> >>   hEditor = hSubject >>   object.attach(hSubject, me, "heditor") >> >> END >> > > thanks a lot. i just read this, too, but didn't notice that it could be > significant. > anyway, thanks, > tobi > > -

Re: [Gambas-user] Catching an Event from an Object in another Class

2011-06-24 Thread tobias
hi, > PUBLIC SUB _new(hSubject AS Editor) > > hEditor = hSubject > object.attach(hSubject, me, "heditor") > > END > thanks a lot. i just read this, too, but didn't notice that it could be significant. anyway, thanks, tobi --

Re: [Gambas-user] Catching an Event from an Object in another Class

2011-06-24 Thread Fabien Bodard
PUBLIC SUB _new(hSubject AS Editor) hEditor = hSubject object.attach(hSubject, me, "heditor") END 2011/6/24 tobias : > hi everyone, > > i want to get the Editor_Highlight event of an Editor on a form in a > separate class, too. i have in the following in that class: > > PRIVATE hEditor AS Ed

[Gambas-user] Catching an Event from an Object in another Class

2011-06-24 Thread tobias
hi everyone, i want to get the Editor_Highlight event of an Editor on a form in a separate class, too. i have in the following in that class: PRIVATE hEditor AS Editor PUBLIC SUB _new(hSubject AS Editor) hEditor = hSubject END PUBLIC SUB hEditor_Highlight() PRINT Highlight.Text END