|
pfc_minimizeall
|
|
Full name
|
pfc_n_cst_winsrv_sheetmanager.pfc_minimizeall
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
event integer pfc_minimizeall()
|
Name
|
Datatype
|
li_cnt
|
integer
|
li_sheetcount
|
integer
|
lw_sheet
|
window[]
|
event pfc_minimizeall;call super::pfc_minimizeall;//////////////////////////////////////////////////////////////////////////////
//
// Event: pfc_minimizeall
//
// Arguments: none
//
// Returns: integer
// number of sheets minimized
// -1 = error
//
// Description:
// Minimizes all open sheets
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 5.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_sheetcount
integer li_cnt
window lw_sheet[]
// Validate window requestor
if IsNull(iw_requestor) Or not IsValid (iw_requestor) then
return -1
end if
// Get all sheets
li_sheetcount = of_GetSheets (lw_sheet)
if li_sheetcount > 0 then
// Save current state
of_SetCurrentState (icons!)
for li_cnt = 1 to li_sheetcount
lw_sheet[li_cnt].windowstate = minimized!
next
end if
return li_sheetcount
end event