> > 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 - 
pressing enter on the combo box doesn't print anything, which it obviously 
should :\ I'm using 0.72 with wxWidgets version 2.8.3 and Perl 5.8.3, any 
further suggestions appreciated! :)

Cheers,

Matt

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.
                                        

Reply via email to