> > > 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).
>
> Mattia,
>
> I tried this again and realised that in fact this doesn't work for me

  Maybe you're suffering the buffering ;-) try changing

print"Moo"

to

print"Moo\n" (or warn)

  I had the same problem, but posted the wrong version of the
one-liner; sorry.

Mattia

Reply via email to