Difference between revisions of "RectControl.TrueWindow"

From Xojo Documentation

Line 23: Line 23:
TextField1.Value = Me.TrueWindow.Title
TextField1.Text = Me.TrueWindow.Title

Revision as of 19:46, 8 August 2017

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.


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.


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

TextField1.Text = Me.TrueWindow.Title