Does anyone know of a way to change the color of formatting fo text 'inline'?

Such as:

my $text = "This is my new text";

$mw->SomeLabel->Change( -text => $text );

can you somehow do anything like:

my $text = "This is my <b>new text</b>";  # ok, ok, I KNOW that's HTML!

$mw->SomeLabel->Change( -text => $text );

Of course that won't work, but is there a similar way? or a way to combine 2
fonts on a  line to achive this?

I want to color CERTAIN text red if there is a configuration error, I've
included a screen shot so you can get an idea of what I'm trying to do.
Currently every label you see there is one big long text string, I didn't want
to make a seperate labels for EVERYTHING there, if there is a better way to lay
something like this out PLEASE tell me how, but for now this works.  If an error
is detected, I want to color that item red, so if the subnet mask was found to
be incorrect that whole line would be red, but it's part of one big text string.
Any ideas?  Thanks,

Chuck



Reply via email to