|
timer
|
|
Full name
|
pfc_w_statusbar.timer
|
Access
|
public
|
Extend of
|
|
Return value
|
|
Prototype
|
event timer()
|
Name
|
Datatype
|
lgo_withfocus
|
graphicobject
|
li_rc
|
integer
|
event timer;//////////////////////////////////////////////////////////////////////////////
//
// Event: timer
//
// Arguments: None
//
// Returns: None
//
// Description:
// Every is_secondstorefresh this event will refresh the displayed objects.
// Note: The timer 'pfc_timer' is updated by the DataWindow object timer.
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 5.0 Initial version
// 5.0.03 Restore the focus point to the correct object which may not be the frame.
//
//////////////////////////////////////////////////////////////////////////////
//
// 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
graphicobject lgo_withfocus
// Check for the required reference.
If IsNull(iw_parentwindow) Or Not IsValid(iw_parentwindow) Then
Return
End If
// Refresh the displayed objects.
li_rc = of_RefreshVisuals()
// The move/resize stopped, make the status bar visible once again.
if this.Visible=False then
// Keep track of the object with focus.
lgo_withfocus = GetFocus()
// Make this window visible (window gets focus).
this.Visible = True
// Restore the focus point to the previous valid focus point.
of_RestoreFocusPoint(lgo_withfocus)
// Reset the timer.
Timer (ii_secondstorefresh, this)
end if
end event