|
resize
|
|
Full name
|
pfc_w_master.resize
|
Access
|
public
|
Extend of
|
|
Return value
|
|
Prototype
|
event resize()
|
event resize;//////////////////////////////////////////////////////////////////////////////
//
// Event: resize
//
// Description:
// Send resize notification to services
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 5.0 Initial version
// 7.0 Change to not resize when window is being restored from a minimized state
//
//////////////////////////////////////////////////////////////////////////////
//
// 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.
//
//////////////////////////////////////////////////////////////////////////////
// Notify the resize service that the window size has changed.
If IsValid (inv_resize) and This.windowstate <> minimized! Then
inv_resize.Event pfc_Resize (sizetype, This.WorkSpaceWidth(), This.WorkSpaceHeight())
End If
// Store the position and size on the preference service.
// With this information the service knows the normal size of the
// window even when the window is closed as maximized/minimized.
If IsValid (inv_preference) And This.windowstate = normal! Then
inv_preference.Post of_SetPosSize()
End If
end event