On Mon, 30 Jul 2007 12:39:17 +0100
"Matthew Wilson" <[EMAIL PROTECTED]> wrote:
Hi,
> 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).
> Am I doing something obviously wrong, or am I missing
> omething? Any help appreciated!
In order to be able to help you, you should at least
provide the exact error message and a source code snippet.
Regards,
Mattia