of_setfillcolor


pfcmain.pbl   >   pfc_u_progressbar   >   of_setfillcolor   

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

Name Datatype
No Data

Name Datatype
ls_modify string
ls_return string

public function integer of_setfillcolor (long al_fillcolor);//////////////////////////////////////////////////////////////////////////////
//
//	Function:	of_SetFillColor
//
//	Access:		public
//
//	Arguments:
//	al_fillcolor   color the progress bar will fill with
//
//	Returns:  integer
//	SUCCESS = 1
//	ERROR = -1
//
//	Description:
//	Set the color the progress bar will fill with
//
//////////////////////////////////////////////////////////////////////////////
//
//	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_fillcolor) then
	return -1
end if

il_fillcolor = al_fillcolor

ls_modify = "progress_rect.brush.color='" + string(al_fillcolor) + "'"
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