of_settextcolor


pfcmain.pbl   >   pfc_u_progressbar   >   of_settextcolor   

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

Name Datatype
No Data

Name Datatype
ls_modify string
ls_return string

public function integer of_settextcolor (long al_textcolor);//////////////////////////////////////////////////////////////////////////////
//
//	Function:	of_SetTextColor
//
//	Access:		public
//
//	Arguments:
//	al_textcolor   color the progress bar text will display
//
//	Returns:  integer
//	SUCCESS = 1
//	ERROR = -1
//
//	Description:
//	Set the color the progress bar text
//
//////////////////////////////////////////////////////////////////////////////
//
//	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_textcolor) or (al_textcolor < 0) then
	return -1
end if

il_textcolor = al_textcolor

ls_modify = "pct.color='" + string(al_textcolor) + "'"
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