realbasic-nug
[Top] [All Lists]

detecting window activation in a canvas?

To: "\"\\\"REALbasic Network Users Group\\\"@\"" <realbasic-nug at lists dot realsoftware dot com>
Subject: detecting window activation in a canvas?
From: Bob Wyttenbach <rw12 at cornell dot edu>
Date: Sat, 30 Apr 2005 00:32:56 -0400
Delivered-to: realbasic-nug at lists dot realsoftware dot com
I need a canvas to draw itself differently when its parent window is deactivated than when it is active. Since the canvas doesn't get activate/deactivate events, the obvious way to do it was by having the window set a property that the canvas checked when it redrew.

That worked pretty well, but now I want to subclass the canvas and make it independent of a specific window class. Now how can I let the canvas know about activate/deactivate? Any suggestions?

Ideally, I'd like all controls to receive the activate/deactivate event when the window does, or for the window class itself to have a boolean property "Active" that could be checked by controls. But these are feature requests to log if I can't find some simple solution in RB5.5.

thanks,
Bob
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>