Joe Strout wrote: >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.
Yes. But what tells the Paint event to fire when the parents enabled state changes? > When it's enabled or disabled, it's also refreshed, >causing the Paint event to fire. I don't see that happening. Is there some Canvas property that needs to be set, so that the Canvas sees that event? I stuck a Beep call into the Paint event to get an indication as to when it fires. I don't get any beeps when I change the parents state. -- That is where I am stuck. > So that should do it. > >Best, >- Joe _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
