G'day, good monks:
My code for this portion of a project I'm working on is a mess - I can provide snippets if it'll help, but I think my problem lies in overall orchestration and comprehension.
I'm trying to write to a Win32::GUI RichEdit field with a highlighted word. The script scrapes output from another function and prints it out. I was originally using a Textfield, but that does not allow for variations in text. I know I need to write a prolog at initialization, then have my script print the lines with the word highlighted. There is no user interaction for this portion.
The problem I'm running into is that either my \'s get printed literally (so \fs20 is \\fs20 in the raw document) or they get completely misinterpreted and get turned into funky characters that I have no explanation for.
So - anybody ever print out rtf strings to a Win32::GUI Richedit window before? I don't mind including other modules; I've been fiddling with RTF::Writer's new_to_string with no success. Thanks again!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.