Example of OOP GUI App needed.

BlitzMax Forums/BlitzMax Beginners Area/Example of OOP GUI App needed.

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I made some GUI-object, need to add some free-up method:

Method Free()
End Method

I figure I can kill the created gadgets easily with:

Method Free()
canvas=null
button=null
gccollect()
End Method

However, how do I get rid of the eventhook for this object? The manual is as zero'ish as it is ever:

Function RemoveHook( id,func:Object( id,data:Object,context:Object ) )

I figure 'id' could be 'self' ? And what is that func stuff/how to use it?