Another day and another question. Hope some one can shed some light on a
I'm trying to layout text in a RichEdit window and find that the layout
with tabs doesn't give me nice neat columns of text.
My thoughts are to use a mono spaced font (using Windows XP).
Is that the solution? If so, how do I set the font for the control
Education is the best provision for the journey to old age.
From: Brian Rowlands (Greymouth High School) <RowlandsB@greyhigh.school.nz> - 2008-06-04 07:36:31
Thanks for that. Did some googling after your response and found the
my $font = new Win32::GUI::Font(
-name => "Courier New",
-height => 10,
-bold => 1,
my $report = $main->AddRichEdit (
-name => 'Report',
-pos => [10, 155],
-size => [600,400],
-disabled => 0,
-vscroll => 1,
-hscroll => 1,
-font => $font,
Thanks for taking the time to reply.
From: Geoffrey Spear [mailto:geoffspear@...]
Sent: Tuesday, 3 June 2008 11:15 p.m.
To: Brian Rowlands (Greymouth High School)
Subject: Re: [perl-win32-gui-users] richedit formatting
On Tue, Jun 3, 2008 at 6:32 AM, Brian Rowlands (Greymouth High School)
> Is that the solution? If so, how do I set the font for the control
I believe you want SetCharFormat, which is documented, or
SetParaFormat, which isn't but which sounds like it could be more
And while I haven't tested it, I know that tabbed columns don't line
up right in any other application using proportional fonts so I'm 99%
certain that you're right about that being your problem.