|
of_SetOrigSize
|
|
Full name
|
pfc_n_cst_resize.of_SetOrigSize
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_SetOrigSize(integer,integer)
|
public function integer of_SetOrigSize (integer ai_width, integer ai_height);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_SetOrigSize
//
// Access: public
//
// Arguments:
// ai_width The current width of the parent object.
// ai_height The current height of the parent object.
//
// Returns: integer
// 1 if it succeeds and -1 if an error occurs.
//
// Description: Initializes the Resize object by setting the current object
// size.
// Note: the service object needs to be initialized (this function)
// prior to the registering (of_register()) of objects.
//
//////////////////////////////////////////////////////////////////////////////
//
// 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.
//
//////////////////////////////////////////////////////////////////////////////
//Check parameters
If IsNull(ai_width) or IsNull(ai_height) Then
Return -1
End If
//Set the current width and height
il_parentprevwidth = ai_width
il_parentprevheight = ai_height
Return 1
end function
Name
|
Owner
|
systemfunctions.isnull |
systemfunctions
|