pfc_exit


pfcapsrv.pbl   >   pfc_n_cst_appmanager   >   pfc_exit   

Full name pfc_n_cst_appmanager.pfc_exit
Access public
Extend of
Return value
Prototype event pfc_exit()

Name Datatype
No Data

Name Datatype
lw_activeframe w_frame

event pfc_exit;//////////////////////////////////////////////////////////////////////////////
//
//	Event:  pfc_exit
//
//	Arguments:  None
//
//	Returns:  None
//
//	Description:
//	Exit from the application.
//	If the application contains a Frame, an explicit close will be issued to
//	the active MDI frame window.
//
//	NOTE:  This event is a stubb event and may need to be overriden.
// Examples of why to override:
//	1) The application is SDI and you want to issue an explicit close to the main window
//	2) The application contains multiple frames and the desired behavior is to
// 	close all of them.
// 3) ...
//
//////////////////////////////////////////////////////////////////////////////
//	
//	Revision History
//
//	Version
//	5.0   Initial version
//	5.0.02   Modified default behavior to close the active frame window if available.
//		If there is no active MDI frame window available, function will issue a halt close.
//
//////////////////////////////////////////////////////////////////////////////
//
//	Copyright © 1996-1997 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.
//
//////////////////////////////////////////////////////////////////////////////

w_frame	lw_activeframe

lw_activeframe = of_GetFrame()
if IsValid (lw_activeframe) then
	Close (lw_activeframe)
else
	halt close
end if
end event

     
Name Owner
pfc_n_cst_appmanager.pfc_systemerror pfc_n_cst_appmanager
pfc_m_master.m_exit.clicked m_exit

     
Name Owner
systemfunctions.close systemfunctions
systemfunctions.isvalid systemfunctions
pfc_n_cst_appmanager.of_getframe pfc_n_cst_appmanager

     
Full name
No Data

     
Name Scope
No Data