On 1/3/07, Roger Clary <[EMAIL PROTECTED]> wrote:

On Jan 3, 2007, at 11:35 AM, Dennis Birch wrote:

> Add a stylerun composed of your text, with no formatting, to the
> beginning of your styled text.
>
> On 1/2/07, Roger Clary <[EMAIL PROTECTED]> wrote:
>> I am using
>> PrintFld.SetTextAndStyle(myText, myStyle)
>> to insert user styled text into an editfield prior to printing.
>>
>> I want to add unstyled text of 3 chars in length to the _beginning_
>> of the styled text before printing.
>> I can't figure out how to insert this unstyled text _before_ the
>> styled text without starting the style run at the beginning of my 3
>> chars.

I know I'm being really stupid here, but that's just the problem, I
can't figure how to insert text at the beginning of an EF.
Editfield1.append put the text at the end even though i set
Editfield1.selStart = 0 before the append.

Create a new instance of a StyledText in a variable and append the
three-character stylerun, then loop through the StyledText instance of
the EditField and AppendStyleRun each of its styleruns.

Better yet, now that I think of it: Add an invisible editfield to your
window and use its StyledText instance instead of using the
variableapproach above. Then just print that invisible editfield using
its StyledTextPrinter.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to