[Gambas-user] Catching an Event from an Object in another Class
tobias
tobiasboe1 at ...20...
Fri Jun 24 11:13:36 CEST 2011
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
in the form i just give my Editor to it:
Instance = NEW Class(Editor1)
but it doesn't work. i also tried using an extra Observer but i think i
didn't unterstand something very fundamental in event management.
can anyone explain it to me?
regards,
tobi
More information about the User
mailing list