Topic Options
#55955 - 05/08/18 06:45 AM Multi Format text within one Presstalk Line
Dean Offline
OL Toddler

Registered: 04/11/13
Posts: 33
Morning.

I have a couple of sentences being applied via some presstaklk, and I wanted to only bold the second sentence:

Eg

if(&ENBENA2018)
set(&EN18Benefit, 'You are entitled to xxx. However, if not....')

Is there a code I can use before and after the 2nd sentence to have it appear bold?

Thanks in advance
Dean

Top
#55968 - 05/14/18 08:57 AM Re: Multi Format text within one Presstalk Line [Re: Dean]
cosimo Offline
OL Expert

Registered: 10/31/01
Posts: 1276
Loc: montreal
Hi
Within the if for your second section, you can use the SetStyle procedure or the SetStyleExt procedure.

For SetStyle() , the specified style must already exist in the document.
Ex:
margin(1,1)
setstyle(&blackfont)
show('The word ')
setstyle(&bluefont.i)
show('blue')
setstyle(&blackfont)
show(' is now in blue italic')

For SetStyleExt (procedure)

Select an existing style and set the size, color, style property, or font ratio for its font. This eliminates the need to create several styles that use the same font. setstyleext() does not support bold, italic, or underline styles with double-byte character sets.

Ex:
SetStyleExt (procedure)

Select an existing style and set the size, color, style property, or font ratio for its font. This eliminates the need to create several styles that use the same font. setstyleext() does not support bold, italic, or underline styles with double-byte character sets.

For more, please refer to the online help documentation.

Hope this helps!
Cosimo

Top