To do this you will not be able to make use of the standard multi-line text
field. If you wanted all messages in the field to be of one color this would
be fine, however, to have multiple colors in the field you will need to make
use of the RichEdit control. Beware of dependancies on older systems :-)
_____
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Maxmelbin Neson (RBIN/EMT1)
Sent: Wednesday, August 22, 2007 6:16 AM
To: perl-win32-gui-users@lists.sourceforge.net
Subject: [perl-win32-gui-users] How to print text in COLOR in Textfield
Hello All,
I have a multiline Textfield which acts as my output console.
$main = Win32::GUI::Window->new(-name => 'Main',
-text => 'Perl Win32 GUI',
-width => 550,
-height => 660,
-maximizebox => 0,
);
$outputText = $main->AddTextfield(
-name =>"outputTextField",
-width => 500,
-height => 290,
-left => 20,
-top => 290,
-readonly => 0,
-multiline => 1,
-vscroll =>1,
-hsscroll => 1,
);
Now I want to print the messages in this text filed in different colours ..
Like .
$outputText->Append("The list file $opt_list is invalid.\r\n");
How can I print in some color say Red .
Or should I use something else?
Thanks and Regards
Maxmelbin Neson
----------------------------------------------------------------------------
-------------------------------------
Robert Bosch India Limited
Engineering Services - DS - Methods and Tools (RBIN/EMT1)
123 Industrial Layout - Hosur Road - Bangalore 560 095 - INDIA
Telephone: +91 80 6657-4532 Fax: +91 80 6657-1404
[EMAIL PROTECTED]
<file:///\\www.bosch.com> www.bosch.com
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Perl-Win32-GUI-Users mailing list
Perl-Win32-GUI-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users
http://perl-win32-gui.sourceforge.net/