of_setbackcolor


pfcmain.pbl   >   pfc_u_progressbar   >   of_setbackcolor   

Full name pfc_u_progressbar.of_setbackcolor
Access public
Extend of integer
Return value integer
Prototype public function integer of_setbackcolor(long)

Name Datatype
No Data

Name Datatype
ls_modify string
ls_return string

public function integer of_setbackcolor (long al_backcolor);//////////////////////////////////////////////////////////////////////////////
//
//	Function:	of_SetBackColor
//
//	Access:		public
//
//	Arguments:
//	al_backcolor   background color of the empty progress bar
//
//	Returns:  integer
//	SUCCESS = 1
//	ERROR = -1
//
//	Description:
//	Set the background color of the empty progress bar
//
//////////////////////////////////////////////////////////////////////////////
//
//	Revision History
//
//	Version
//	6.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_modify, ls_return

if isnull(al_backcolor) or (al_backcolor < 0) then
	return -1
end if

il_backcolor = al_backcolor

ls_modify = "datawindow.color='" + string(al_backcolor) + "'"
ls_return = dw_progress.Modify(ls_Modify)

if ls_return <> "" then
	return -1
end if

return 1
end function

     
Name Owner
No Data

     
Name Owner
datawindow.modify datawindow
systemfunctions.isnull systemfunctions
systemfunctions.string systemfunctions

     
Full name
pfc_u_progressbar

     
Name Scope
No Data