Ace128 has asked for the wisdom of the Perl Monks concerning the following question:
How about inserting? I can also use an array, append to that and use that for the Text function, but still feels rather crappy because the whole text is rewritten to the widget...$richEdit->Text($richEdit->Text() . " Appended text\n");
Now, if I do the code mentioned in #1, everything gets the same attribute throughout the text (all text is blue).$richEdit->Select (0, 20); $richEdit->SetCharFormat(-color => "#0000FF");
my $font = new Win32::GUI::Font( -name => "Courier New", #-height => 16, -bold => 1, ); $richEdit->Append(-text => " Appended text", -font => $font);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Questions about Win32::GUI::RichEdit
by jplindstrom (Monsignor) on Jul 06, 2005 at 21:45 UTC | |
by Ace128 (Hermit) on Jul 07, 2005 at 02:02 UTC | |
by jplindstrom (Monsignor) on Jul 07, 2005 at 07:33 UTC | |
|
Re: Questions about Win32::GUI::RichEdit
by ikegami (Patriarch) on Jul 06, 2005 at 20:44 UTC |