Difference between revisions of "DesktopContainer.Window"

From Xojo Documentation

 
Line 4: Line 4:
 
| ownertype=class
 
| ownertype=class
 
| scope=public
 
| scope=public
| type=[[Window]]
+
| type=[[DesktopWindow]]
 
| platform=all
 
| platform=all
 +
| readonly=yes
 
| newinversion=2021r3
 
| newinversion=2021r3
 
}}
 
}}
 
{{Description
 
{{Description
|text = Gets the containing window. }}
+
|text = Returns a reference to the actual enclosing window. }}
  
Multiple levels of embedding are permitted, so this window may not be the highest level window.
+
== Exceptions ==
 +
{| class="genericTable"
 +
! width=20% | Exception
 +
! width=80% | Reason
 +
|-
 +
|[[NilObjectException]]
 +
|Can be raised if the container has not yet been embedded anywhere.
 +
|}
 +
 
 +
==Notes==
 +
Window walks up the window hierarchy and finds the actual enclosing window regardless of how deeply nested the [[DesktopUIControl]] or [[DesktopContainer]] hierarchy is.
 +
 
 +
[[DesktopControl]] also has a Window property.

Latest revision as of 18:46, 16 September 2021

Read-Only Property (As DesktopWindow )
DesktopWindowValue = aDesktopContainer.Window

New in 2021r3

Supported for all project types and targets.

Returns a reference to the actual enclosing window.

Exceptions

Exception Reason
NilObjectException Can be raised if the container has not yet been embedded anywhere.

Notes

Window walks up the window hierarchy and finds the actual enclosing window regardless of how deeply nested the DesktopUIControl or DesktopContainer hierarchy is.

DesktopControl also has a Window property.