develooper Front page | perl.wxperl.users | Postings from February 2013

Re: SetTextColor on Wx::MenuItem?

Thread Previous | Thread Next
From:
Mark Dootson
Date:
February 28, 2013 00:23
Subject:
Re: SetTextColor on Wx::MenuItem?
Message ID:
512EA380.6080802@znix.com
Hi,

Are you on Windows? SetTextColour is only available on wxMSW.

Assuming the code below is not a direct copy paste, are you sure you're 
using

SetTextColour

and not

SetTextColor


Regards

Mark

On 27/02/2013 23:15, Dave Hayes wrote:
> This is odd...
>
>   $ perl
>   use Wx qw(:everything);
>   my $menuitem = Wx::MenuItem->new($menu, Wx::NewId(), '', '',
> wxITEM_SEPARATOR);
>   $menuitem->SetTextColour();
>   Can't locate object method "SetTextColour" via package "Wx::MenuItem"
> at - line 3.
>
> I see this function in the XS file so...I'm curious why this doesn't work?

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About