|
of_setgdiwidth
|
|
Full name
|
pfc_n_cst_winsrv_statusbar.of_setgdiwidth
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_setgdiwidth(integer)
|
public function integer of_setgdiwidth (integer ai_width);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_SetGDIWidth
//
// Access: Public
//
// Arguments:
// ai_width The new Width.
//
// Returns: Integer
// 1 if it succeeds and -1 if an error occurs.
//
// Description:
// Sets a new GDI Memory Width value.
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 5.0 Initial version
// 5.0.03 Enhanced to accept a new width after object has been registered.
//
//////////////////////////////////////////////////////////////////////////////
//
// 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 arguments.
If IsNull(ai_width) or ai_width < 0 Then
Return -1
End If
ii_gdiwidth = ai_width
// Update the object width, if already registered.
of_UpdatePreDefined('pfc_gdi', ai_width)
Return 1
end function