Hi, all

Right now I have a thingy that does this:

    Wx::Event::EVT_TEXT_ENTER($obj, $obj->{combo_channelName}->GetId,
                              \&setChanName);

    Wx::Event::EVT_COMBOBOX($obj, $obj->{combo_channelName}->GetId,
                            \&setChanName);


(which maps over to my events module with this function:   )

sub setChanName {
    my $obj = shift;
    my $event = shift;
    $param->{chanName} = $obj->{combo_channelName}->GetValue;
    $obj->setObjInfo;
}

Thing is, this works fine in the following two circumstances:
1) The user selects from the menu
2) The user types something in and hits Enter/Return

However, I also want to be able to let the user just wander away from
the Combo Box and have what they typed in be the set value for
$param->{chanName}. Like they should be able to switch tabs or just
start typing in another text field or combo box or whatever and not
have their input be ignored.

I don't see really good documentation for how to handle any sort of
Blur event... and of course most of the documentation that exists is
for C and Perl handles it all a little different.

I also don't want to process stuff for every letter, so triggering off
a change event isn't a good way to go about it either. Basiclly, I
just want it to run the setChanName function as soon as they do
something other than type in the ComboBox.

Any thoughts?
-- 
Dodger

Reply via email to