I have figured out a way which works. The sequence is the following:
1. create the window - component class that will be closed by a button
2. create pointer to an object of that class
3. create actor class which binds zero to the pointer before calling its
destructor
4. create object of class 1.
5. create actor object of 3.
6. assign actor as a callback to the main object using >callback
I have no idea what the callback is actually doing but its destructor is
called on main object destruction and that is what I care about.
However I had to abandon using object pointers since I can never say
when the pointer is zero - self does not work with Bus error! if the
pointer is zero. I had to use a structure with an active? flag.
Q1. Can I tell if a pointer to an object is bound to 0?
Q2. canvas has two callbacks on draw and on click. When on draw callback
is called can I tell if the canvas was resized? I need to do some
computations only on resize which I would like to avoid on simple redraw.
Thanks!
--
Sergey
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]