of_GetParentWindow


pfcmain.pbl   >   pfc_u_dw   >   of_GetParentWindow   

Full name pfc_u_dw.of_GetParentWindow
Access public
Extend of integer
Return value integer
Prototype public function integer of_GetParentWindow(ref window)

Name Datatype
No Data

Name Datatype
lpo_parent powerobject

public function integer of_GetParentWindow (ref window aw_parent);//////////////////////////////////////////////////////////////////////////////
//	Public Function:  of_GetParentWindow
//	Arguments:		aw_parent   The Parent window for this object (passed by reference).
//	   								If a parent window is not found, aw_parent is NULL
//	Returns:			Integer - 1 if it succeeds and -1 if an error occurs
//	Description:	Calculates the parent window of a window object
//////////////////////////////////////////////////////////////////////////////
//	Rev. History	Version
//						5.0   Initial version
//////////////////////////////////////////////////////////////////////////////
//	Copyright © 1996-1999 Sybase, Inc. and its subsidiaries.  All rights reserved.  Any distribution of the 
// PowerBuilder Foundation Classes (PFC) source code by other than Sybase, Inc. and its subsidiaries is prohibited.
//////////////////////////////////////////////////////////////////////////////
powerobject	lpo_parent

lpo_parent = this.GetParent()

// Loop getting the parent of the object until it is of type window!
do while IsValid (lpo_parent) 
	if lpo_parent.TypeOf() <> window! then
		lpo_parent = lpo_parent.GetParent()
	else
		exit
	end if
loop

if IsNull(lpo_parent) or not IsValid (lpo_parent) then
	setnull(aw_parent)	
	return FAILURE
end if

aw_parent = lpo_parent

return SUCCESS
end function

     
Name Owner
pfc_n_cst_dwsrv_linkage.of_save pfc_n_cst_dwsrv_linkage
pfc_n_cst_dwsrv_report.of_gettextsizepos pfc_n_cst_dwsrv_report
pfc_n_cst_dwsrv_report.of_getpicturesize pfc_n_cst_dwsrv_report
pfc_u_dw.of_CheckRequired pfc_u_dw
pfc_u_dw.of_SetDropDownCalendar pfc_u_dw
pfc_u_dw.of_SetDropDownCalculator pfc_u_dw
pfc_n_cst_dwsrv_property.of_openpropertyservice pfc_n_cst_dwsrv_property
pfc_u_dw.rbuttonup pfc_u_dw
pfc_u_dw.pfc_printdlg pfc_u_dw
pfc_u_dw.getfocus pfc_u_dw
pfc_u_dw.itemerror pfc_u_dw
pfc_u_dw.itemfocuschanged pfc_u_dw
pfc_u_dw.dberror pfc_u_dw

     
Name Owner
powerobject.getparent powerobject
powerobject.typeof powerobject
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions
systemfunctions.setnull systemfunctions

     
Full name
No Data

     
Name Scope
No Data