I've never had any success changing it once it is created, but to set the
font at the beginning you can use:
my $Font = new Win32::GUI::Font(
-name => "Courier New",
-height => 16,
-bold => 0,
);
### or the font/style of your choice...
### and then in your AddRichEdit use
-font => $Font
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, July 03, 2001 5:25 PM
> To: [email protected]
> Subject: [perl-win32-gui-users] Formatting of text in a RichEdit
>
>
>
> Hi All
>
> I'm currently playing with a RichEdit to display the output
> of a report. Does
> anyone have any experience setting formatting inside a RichEdit ?
>
> I guess I should be able to use Bold / Italics / Color but am
> having problems
> working out how. I looked on MSDN and I think I may have to
> use SendMessage to
> send a EM_SETCHARFORMAT message to the RichEdit ? (I may be
> well off track
> here.)
>
> Any ideas ?
>
> I'd like to maybe print column headings in bold in a larger
> typeface than the
> body.
>
> All help greatly appreciated.
>
> Cheers
>
> Paul
>
>
>
> **************************************************************
> *****************
> Important. This E-mail is intended for the above named person
> and may be
> confidential and/or legally privileged. If this has come to
> you in error you
> must take no action based on it, nor must you copy or show it
> to anyone; please
> inform the sender immediately.
> **************************************************************
> *****************
>
>
> _______________________________________________
> Perl-Win32-GUI-Users mailing list
> [email protected]
> http://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
>