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

    To boot, I also came across a kickass wiring schematic CAD application which is open source: Fritzing.

      I found Fritzing about two years ago. I use it to draw stripboard layouts. Haven't tried to have a PCB made yet.

      James

      There's never enough time to do it right, but always enough time to do it over...