|
of_setbar
|
|
Full name
|
pfc_n_cst_winsrv_statusbar.of_setbar
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_setbar(boolean)
|
Name
|
Datatype
|
li_rc
|
Integer
|
public function integer of_setbar (boolean ab_switch);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_SetBar
//
// Access: Public
//
// Arguments:
// ab_switch True to have the setting on the Status Bar.
//
// Returns: Integer
// SUCCESS = 1
// ERROR = -1
//
// Description:
// Sets the flag to indicate if a progress bar is to be shown on the Status Bar.
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 6.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.
//
//////////////////////////////////////////////////////////////////////////////
Integer li_rc
// Check arguments.
If IsNull(ab_switch) Then
Return -1
End If
If ib_bar = ab_switch Then
// No change.
Return 0
End If
// Set the flag.
ib_bar = ab_switch
// Register or Unregister the Pre-Defined option.
If ib_bar Then
li_rc = of_RegisterPreDefined('pfc_progress', ii_barwidth)
Else
li_rc = of_UnRegisterPreDefined('pfc_progress')
End If
Return li_rc
end function