in reply to Changing font colour in a Wx StaticText or Button
Thanks for all the help and responses everyone.
After finding Wx::Demo and glancing over much of that, Wx is quite a bit easier to use once you take a couple of hours to understand the hierarchy of its classes. Not only that, it led to realizing better and more concise ways to get everything set up in the first place.
beech was right. It was as simple as:
sub aux4_on { my $self = shift; $self->{aux4_pin}->write(HIGH); $self->{aux4_display}->SetLabel("on"); $self->{aux4_display}->SetForegroundcolour( Wx::Colour->new(0, 204, 0) # green ); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Changing font colour in a Wx StaticText or Button
by stevieb (Canon) on Aug 30, 2016 at 14:20 UTC | |
by jmlynesjr (Deacon) on Aug 30, 2016 at 15:10 UTC |