|
of_setminsize
|
|
Full name
|
pfc_n_cst_resize.of_setminsize
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_setminsize(integer,integer)
|
public function integer of_setminsize (integer ai_minwidth, integer ai_minheight);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_SetMinSize
//
// Access: public
//
// Arguments:
// ai_minwidth The minimum width for the parent object.
// ai_minheight The minimum height for the parent object.
//
// Returns: integer
// 1 if it succeeds and -1 if an error occurs.
//
// Description: Sets the current object minimum size attributes.
// Note: the service object needs to be initialized (of_SetOrigSize())
// prior to setting the Minimum size of the object.
//
//////////////////////////////////////////////////////////////////////////////
//
// 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_minwidth) or IsNull(ai_minheight) Then
Return -1
End If
//Confirm that the user object has already been initialized
If il_parentprevheight=-1 And il_parentprevwidth=-1 Then
Return -1
End If
//Set the minimum values for the width and height
il_parentminimumwidth = ai_minwidth
il_parentminimumheight = ai_minheight
Return 1
end function
Name
|
Owner
|
systemfunctions.isnull |
systemfunctions
|