[Gambas-user] How to process Events of an inherited class?
Mike Nought
mike-nought at ...17...
Sat Aug 19 23:39:46 CEST 2006
Hi all,
I've got a problem:
I want to create an own version of the ColumnView-class extended by some other
data-values and stuff. Within this class inheriting ColumnView I want to
process some Events, the inherited Element raises.
For this purpose i did Object.Attach(ME, ME, "FList") which works well.
But it is - as far as I tried - not possible to let this class raise it's own
Events. I tried the following:
EVENT Rename()
[...]
PUBLIC SUB FList_Rename()
[some code]
Object.Detach(ME)
RAISE Rename
Object.Attach(ME, ME, "FList")
END
Instead of raising the event, nothing happens. Attaching the instance of this
class in the parent class disables the execution of the FList_Rename()-Sub
above.
How can I process an Event of the inherited class as well as raising own
events at the same time?
Regards,
Franz
More information about the User
mailing list