Difference between revisions of "RectControl.TrueWindow"

From Xojo Documentation

(SMBot: new page by automated transformation)
 
 
(8 intermediate revisions by 3 users not shown)
Line 4: Line 4:
 
| ownertype=class
 
| ownertype=class
 
| scope=public
 
| scope=public
 +
| readonly = yes
 
| type=[[Window]]
 
| type=[[Window]]
 
| platform=all
 
| platform=all
 
| newinversion=2009r1
 
| newinversion=2009r1
 
}}
 
}}
Returns a reference to the actual enclosing [[WindowClass|Window]].  
+
{{Description
 +
|text = Returns a reference to the actual enclosing [[Window]]. }}
 +
 
 +
==Notes==
  
 
TrueWindow walks up the window hierarchy and finds the actual enclosing window regardless of how deeply nested the [[RectControl]] or [[ContainerControl]] hierarchy is.  
 
TrueWindow walks up the window hierarchy and finds the actual enclosing window regardless of how deeply nested the [[RectControl]] or [[ContainerControl]] hierarchy is.  
  
[[WindowClass|Window]] also has a TrueWindow property.
+
[[Window]] also has a TrueWindow property.
 +
 
 +
==Example==
 +
 
 +
This example accesses the TrueWindow and displays its Title property in a [[TextField]].
 +
 
 +
<rbcode>
 +
TextField1.Value = Me.TrueWindow.Title
 +
</rbcode>

Latest revision as of 17:48, 16 July 2019

Read-Only Property (As Window )
WindowValue = aRectControl.TrueWindow

New in 2009r1

Supported for all project types and targets.

Returns a reference to the actual enclosing Window.

Notes

TrueWindow walks up the window hierarchy and finds the actual enclosing window regardless of how deeply nested the RectControl or ContainerControl hierarchy is.

Window also has a TrueWindow property.

Example

This example accesses the TrueWindow and displays its Title property in a TextField.

TextField1.Value = Me.TrueWindow.Title