Responding to delete event when deleting a Control in the Pa

For questions and postings not covered by the other forums
ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Responding to delete event when deleting a Control in the Pa

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:28 pm

by Marcelle Goslin >> Wed, 3 Dec 2003 5:53:57 GMT

Hi All

I have a subclassed Control, and I would like to do some stuff if it gets deleted in the Painter while in development mode.

Is there a way I can trap the event?

It seems as though the Painter creates a BaseForm instance which has a deletedObjects collection. I thought if I could re-implement the method that adds deleted controls to this collection, I could slot my bits in there.

Any advise appreciated.

TIA
Marcelle Goslin

ConvertFromOldNGs
Posts: 5321
Joined: Wed Aug 05, 2009 5:19 pm

Re: Responding to delete event when deleting a Control in the Pa

Postby ConvertFromOldNGs » Fri Aug 07, 2009 12:28 pm

by Marcelle Goslin >> Wed, 3 Dec 2003 7:19:00 GMT

Have subsequently discovered that the paint method of self.parent is called when a control is deleted in the Painter. (Great).

But, have not yet found a way of determining if self is logically deleted or not.

Comments appreciated.

Marcelle Goslin


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 34 guests