PtGetParent

PtGetParent — gives the class definition for a parent of a widget.

Syntax

PtGetParent (widget, class)

		

Arguments

widget

The widget whose parent is being looked up.

class

The class of the parent.

Returns

The definition of the parent class if successful, else nil.

Example

Gamma> PtInit(nil);
t
Gamma> win = new(PtWindow);
window definition
Gamma> pane = new(PtPane);
pane definition
Gamma> a = new(PtLabel);
label definition
Gamma> PtGetParent(a,PtWindow);
window definition

		

See Also

PtReParentWidget, PtSetParentWidget