of_settextstylebold


pfcmain.pbl   >   pfc_u_rte   >   of_settextstylebold   

Full name pfc_u_rte.of_settextstylebold
Access public
Extend of integer
Return value integer
Prototype public function integer of_settextstylebold(boolean)

Name Datatype
No Data

Name Datatype
lnv_textstyle n_cst_textstyleattrib

public function integer of_settextstylebold (boolean ab_bold);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  of_SetTextStyleBold
//
//	Access:  public
//
//	Arguments:
//	ab_bold   bold setting for the currently selected text
//
//	Returns:  integer
//	 1 = success
//	-1 = failure
//
//	Description:  Sets the currently selected textstyle to bold/not bold
//
//////////////////////////////////////////////////////////////////////////////
//
//	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.
//
//////////////////////////////////////////////////////////////////////////////

n_cst_textstyleattrib	lnv_textstyle

if of_GetTextStyle (lnv_textstyle) > 0 then
	return SetTextStyle (ab_bold, lnv_textstyle.ib_underlined, lnv_textstyle.ib_subscript, &
		lnv_textstyle.ib_superscript, lnv_textstyle.ib_italic, lnv_textstyle.ib_strikeout)
else
	return -1
end if
end function

     
Name Owner
No Data

     
Name Owner
richtextedit.settextstyle richtextedit
pfc_u_rte.of_gettextstyle pfc_u_rte

     
Full name
No Data

     
Name Scope
No Data