On Apr 04, 2007, at 20:45 UTC, Peter E. Barck wrote:

> >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?

The RB framework.

> 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.

It's certainly called when you modify the .Enabled state of the canvas
itself.  It does not seem to be called when the window activates or
deactivates, though, which I think may be a bug (which is to say, I
can't think of a reason why that would NOT be a bug).  But it's one
easily worked around using the window Activate and Deactivate events.

As for enabling/disabling the parent, that does seem to trigger a
refresh (i.e. Paint invocation) in an embedded Canvas for me.  (I'm
using 2007R2 on OS X 10.4.9 with a non-composite window.)

Best,
- Joe




> 
> >  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>
> 
--
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>

Reply via email to