Re: TextCtrl question.

2010-08-03 Thread Daniel Carrera
Thanks. Your suggestion didn't exactly work, but this alternative did: my $font = Wx::Font->new(10,wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL,wxFONTWEIGHT_NORMAL,0,"Courier"); $myTextCtrl->SetFont($font); Yay! On Tue, Aug 3, 2010 at 5:09 PM, Alessandro wrote: > Hi, > I use Wx::F

Re: TextCtrl question.

2010-08-03 Thread Alessandro
Hi, I use Wx::Font http://docs.wxwidgets.org/stable/wx_wxfont.html#wxfont and SetFont method inherited from Wx::Window It works for me setting 'courier' Example # Get current font my $font = $myTextCtrl->GetFont; # Set font if ( $font->SetFaceName('Courier') ) { $myTextCtrl->SetFont($font