of_refreshposition


pfcwnsrv.pbl   >   pfc_w_statusbar   >   of_refreshposition   

Full name pfc_w_statusbar.of_refreshposition
Access public
Override of integer
Return value integer
Prototype public function integer of_refreshposition()

Name Datatype
No Data

Name Datatype
li_rc Integer

public function integer of_refreshposition ();//////////////////////////////////////////////////////////////////////////////
//
//	Function:  		of_RefreshPosition
//
//	Access:  		public
//
//	Arguments: 		None
//
//	Returns:  		Integer
//	1 if it succeeds and -1 if an error occurs.
//
//	Description:  	
//	Movement of the Parent Frame Window is currently ongoing.
//
//////////////////////////////////////////////////////////////////////////////
//
//	Revision History
//
//	Version
//	5.0   Initial version
// 5.0.03 Hide statusbar (disable timer) when the parentwindow is minimized or 
//			not visible.
//
//////////////////////////////////////////////////////////////////////////////
//
//	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.
//
//////////////////////////////////////////////////////////////////////////////

Integer	li_rc

// Check window reference.
If IsNull(iw_parentwindow) Or Not IsValid(iw_parentwindow) Then
	Return -1
End If

if iw_parentwindow.windowstate = minimized! or &
	Not iw_parentwindow.Visible or &
	iw_parentwindow.mdi_1.microhelpheight + 150 > iw_parentwindow.Height then
	// Hide statusbar (disable timer) when the parentwindow is minimized or
	// not visible.
	this.visible = false
	Timer (0, this)
	return 1
end if
	
// Hide until the move is complete.
this.visible = false
Timer (0, this)

li_rc = of_SetPosition()
If IsValid(iw_parentwindow) Then iw_parentwindow.SetFocus()
Timer (0.5, this)

Return 1
end function

     
Name Owner
pfc_n_cst_winsrv_statusbar.pfc_resize pfc_n_cst_winsrv_statusbar
pfc_n_cst_winsrv_statusbar.pfc_move pfc_n_cst_winsrv_statusbar
pfc_n_cst_winsrv_statusbar.pfc_hide pfc_n_cst_winsrv_statusbar
pfc_n_cst_winsrv_statusbar.pfc_show pfc_n_cst_winsrv_statusbar

     
Name Owner
window.setfocus window
systemfunctions.isnull systemfunctions
systemfunctions.isvalid systemfunctions
systemfunctions.timer systemfunctions
pfc_w_statusbar.of_setposition pfc_w_statusbar

     
Full name
pfc_w_frame
pfc_w_master
pfc_w_statusbar

     
Name Scope
No Data