> On Mon, 30 Jul 2007 12:39:17 +0100
> > I'm trying to use the wxTE_PROCESS_ENTER style flag with a
> > wxComboBox but am getting an unknown style flag error. The
> > reason I need to use this style is so that the combo box
> > processes EVT_TEXT_ENTER events properly - AIUI they're not
> > processed by default.
>
> perl -Mstrict -MWx=wxTE_PROCESS_ENTER,wxCB_DROPDOWN
> -MWx::Event=EVT_TEXT_ENTER -e ' my $a=Wx::SimpleApp->new;
> my $f=Wx::Frame->new(undef,-1,"Foo");
> my $c=Wx::ComboBox->new($f, -1, "Foo", [-1,-1],[-1,-1],[qw(Foo Moo
> Boo)],wxCB_DROPDOWN|wxTE_PROCESS_ENTER);
> EVT_TEXT_ENTER($f,$c,sub{print"Moo"}); $f->Show;
> $a->MainLoop'
>
> works for me (yes, I'm aware that a wxPerl one-liner is sick).
That works for me too, strange. Maybe this is a problem with loading from an
XRC instead.
Thanks, I'll look into that.
http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain personal
views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on
it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.