WindowParent Function

Action

Returns the parent of a window.

Syntax

wParent = WindowParent (wWindow [, GUIType])
Variable Description
wParent The parent of the window. WINDOW.
wWindow The window whose parent you want. WINDOW.
GUIType Optional: The GUI of which you want to retrieve the parent window. The default is the current GUI. GUITYPE.

Notes

WindowParent returns the parent window (from the window declaration) of the specified window on the current GUI (or on GUIType, if specified).

Example

[-] window DialogBox Find
	[ ] tag "Find" 
	[ ] parent TextEditor
	[-] StaticText FindWhatText 
		[ ] tag "Find What:" 
	[-] TextField FindWhat 
		[ ] tag "Find What:"  
	[-] CheckBox CaseSensitive
		[ ] tag "Case sensitive" 
	[-] StaticText DirectionText
		[ ] tag "Direction" 
	[-] PushButton FindNext
		[ ] tag "Find Next" 
	[-] PushButton Cancel 
		[ ] tag "Cancel" 
	[-] RadioList Direction
		[ ] tag "Direction" 
[-] testcase WindowParentExample () 
	[ ] Print (WindowParent (Find)) // prints: TextEditor