of_settextstylesuperscript


pfcmain.pbl   >   pfc_u_rte   >   of_settextstylesuperscript   

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

Name Datatype
No Data

Name Datatype
lnv_textstyle n_cst_textstyleattrib

public function integer of_settextstylesuperscript (boolean ab_superscript);//////////////////////////////////////////////////////////////////////////////
//
//	Function:  of_SetTextStyleSuperscript
//
//	Access:  public
//
//	Arguments:
//	ab_superscript   superscript setting for the currently selected text
//
//	Returns:  integer
//	 1 = success
//	-1 = failure
//
//	Description:  Sets the currently selected textstyle to superscript/not superscript
//
//////////////////////////////////////////////////////////////////////////////
//
//	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 (lnv_textstyle.ib_bold, lnv_textstyle.ib_underlined, lnv_textstyle.ib_subscript, &
		ab_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