The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Padre::Wx::History::ComboBox - A history-enabled Wx combobox

SYNOPSIS

  $dialog->{search_text} = Padre::Wx::History::ComboBox->new(
      $self,
      -1,
      '', # Use the last history value
      Wx::wxDefaultPosition,
      Wx::wxDefaultSize,
      [ 'search' ], # The history queue to read from
  );

DESCRIPTION

Padre::Wx::History::ComboBox is a normal Wx ComboBox widget, but enhanced with the ability to remember previously entered values and present the previous values as options the next time it is used.

This type of input memory is fairly common in dialog boxes and other task inputs. The parameters are provided to the history box in a form compatible with an ordinary Wx::ComboBox to simplify integration with GUI generators such as Padre::Plugin::FormBuilder.

The "options" hash should contain exactly one value, which should be the key string for the history table. This can be a simple name, allowing the sharing of remembered history across several different dialogs.

The "value" can be defined literally, or will be pulled from the most recent history entry if it set to the null string.