1Padre::Wx::History::ComUbsoeBroxC(o3n)tributed Perl DocuPmaednrtea:t:iWoxn::History::ComboBox(3)
2
3
4
6 Padre::Wx::History::ComboBox - A history-enabled Wx combobox
7
9 $dialog->{search_text} = Padre::Wx::History::ComboBox->new(
10 $self,
11 -1,
12 '', # Use the last history value
13 Wx::wxDefaultPosition,
14 Wx::wxDefaultSize,
15 [ 'search' ], # The history queue to read from
16 );
17
19 Padre::Wx::History::ComboBox is a normal Wx ComboBox widget, but
20 enhanced with the ability to remember previously entered values and
21 present the previous values as options the next time it is used.
22
23 This type of input memory is fairly common in dialog boxes and other
24 task inputs. The parameters are provided to the history box in a form
25 compatible with an ordinary Wx::ComboBox to simplify integration with
26 GUI generators such as Padre::Plugin::FormBuilder.
27
28 The "options" hash should contain exactly one value, which should be
29 the key string for the history table. This can be a simple name,
30 allowing the sharing of remembered history across several different
31 dialogs.
32
33 The "value" can be defined literally, or will be pulled from the most
34 recent history entry if it set to the null string.
35
36
37
38perl v5.30.1 2020-01-30 Padre::Wx::History::ComboBox(3)