On Jan 8, 2007, at 12:15 PM, [EMAIL PROTECTED] wrote:



-------------- Original message --------------
From: Robert Livingston <[EMAIL PROTECTED]>


I have a canvas class (AnaCanvas) that sits in a window.

I have experimented with that canvas class having a property
(windowInhabited) and that property is the window in which it lives



A RectControl instance (and a Canvas is a RectControl) ALWAYS knows it's window ...From within the subclass just use me.Window to get the reference which is automaticaly assigned by the framework.
- Karen

And then you can cast to gain access to the staticText:

If me.Window IsA Window1 then
  Window1(me.Window).StaticText1.Text = "My Text"
End


Jack


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

Reply via email to