|
of_insertpicture
|
|
Full name
|
pfc_u_rte.of_insertpicture
|
Access
|
public
|
Extend of
|
integer
|
Return value
|
integer
|
Prototype
|
public function integer of_insertpicture(ref string)
|
Name
|
Datatype
|
ls_filename
|
string
|
public function integer of_insertpicture (ref string as_filename);//////////////////////////////////////////////////////////////////////////////
//
// Function: of_InsertPicture
//
// Access: public
//
// Arguments:
// as_filename string that will hold filename user selected, also a default filename
//
// Returns: integer
// 1 = success
// 0 = User cancelled from FileOpen dialog
// -1 = error
//
// Description:
// This function prompts the user to choose a bitmap file to open, then
// it inserts the picture into the RTE.
//
//////////////////////////////////////////////////////////////////////////////
//
// Revision History
//
// Version
// 5.0 Initial version
//
//////////////////////////////////////////////////////////////////////////////
//
// 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.
//
//////////////////////////////////////////////////////////////////////////////
string ls_filename
if GetFileOpenName ("Insert Picture", as_filename, ls_filename, "", &
"Bitmap,*.bmp") = 1 then
return InsertPicture (as_filename)
else
return 0
end if
end function
Name
|
Owner
|
richtextedit.insertpicture |
richtextedit
|
systemfunctions.getfileopenname |
systemfunctions
|