On Apr 04, 2007, at 20:11 UTC, Peter E. Barck wrote: > Yes, it is disabled, but the visual signs of being disabled > (subdued shading) do not show automatically. You need to tickle the > canvas Paint event to do this. The Canvas does not get an event when > the parents state changes. You can statically test for that > condition, but I don't see of any way of getting notification when > this happens.
You don't need notification; just check before you do your drawing in the Paint event. When it's enabled or disabled, it's also refreshed, causing the Paint event to fire. So that should do it. Best, - Joe -- Joe Strout -- [EMAIL PROTECTED] Verified Express, LLC "Making the Internet a Better Place" http://www.verex.com/ _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
