of_redirectfocus


pfcmain.pbl   >   pfc_u_calculator   >   of_redirectfocus   

Full name pfc_u_calculator.of_redirectfocus
Access protected
Extend of integer
Return value integer
Prototype protected function integer of_redirectfocus()

Name Datatype
No Data

Name Datatype
No Data

protected function integer of_redirectfocus ();//////////////////////////////////////////////////////////////////////////////
//
//	Function:  of_RedirectFocus
//
//	Access:    Protected
//
//	Arguments:	None
//
//	Returns:  Integer
//	1 if it succeeds.
//	-1 if an error occurs.
//
//	Description:  
//	Prevent this object from having focus while not visible.
//
//////////////////////////////////////////////////////////////////////////////
//
//	Revision History
//
//	Version
//	6.0   Initial version
//
//////////////////////////////////////////////////////////////////////////////
//
//	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.
//
//////////////////////////////////////////////////////////////////////////////

// Prevent this object from having focus while not visible.
If this.Visible = False Then
	Return of_SetFocusOnRequestor()
End If

Return 1
end function

     
Name Owner
pfc_u_calculator.dw_calculator.getfocus dw_calculator

     
Name Owner
pfc_u_calculator.of_setfocusonrequestor pfc_u_calculator

     
Full name
No Data

     
Name Scope
No Data