Win32-GUI
view release on metacpan or search on metacpan
GENERATED/Win32/GUI/Combobox.pod view on Meta::CPAN
=head1 NAME
Win32::GUI::Combobox - Create and manipulate combobox controls
=head1 DESCRIPTION
[TBD]
=for comment $Id: per_package_method_section.tpl,v 1.3 2006/03/16 21:11:13 robertemay Exp $
=head1 METHODS
L<Common methods|Win32::GUI::Reference::Methods> apply to most windows, controls and resources.
=for comment $Id: per_package_method.tpl,v 1.3 2006/03/16 21:11:13 robertemay Exp $
=head2 new
B<new(PARENT, %OPTIONS)>
Creates a new Combobox object;
can also be called as PARENT->AddCombobox(%OPTIONS).
Class specific B<%OPTIONS> are:
-autohscroll => 0/1 (default 0)
Set/Unset autohscroll style
-disablenoscroll => 0/1 (default 0)
Set/Unset disablenoscroll style
-dropdown => 0/1 (default 0)
Set/Unset dropdown style
-dropdownlist => 0/1 (default 0)
Set/Unset dropdownlist style
-hasstring => 0/1 (default 0)
Set/Unset hasstring style
-lowercase => 0/1 (default 0)
Set/Unset lowercase style
-nointegraleheight => 0/1 (default 0)
Set/Unset nointegraleheight style
-simple => 0/1 (default 0)
Set/Unset simple style
-sort => 0/1 (default 0)
Set/Unset sort style
-uppercase => 0/1 (default 0)
Set/Unset uppercase style
Only one of -simple, -dropdown and -dropdownlist should be used. If
more than one is used, only the last one will be acted on.
See also the L<common options|Win32::GUI::Reference::Options>.
=for comment $Id: per_package_method.tpl,v 1.3 2006/03/16 21:11:13 robertemay Exp $
=head2 Add
B<Add(STRING, STRING .. STRING)>
Adds one or more items at the end of the control's list.
=for comment $Id: per_package_method.tpl,v 1.3 2006/03/16 21:11:13 robertemay Exp $
=head2 AddString
GENERATED/Win32/GUI/Combobox.pod view on Meta::CPAN
=head2 ResetContent
B<ResetContent()>
Remove all items from the Listbox and Textfield of a Combobox.
=for comment $Id: per_package_method.tpl,v 1.3 2006/03/16 21:11:13 robertemay Exp $
=head2 Select
B<Select(INDEX)>
See L<SetCurSel()|Win32::GUI::Combobox/SetCurSel>
=for comment $Id: per_package_method.tpl,v 1.3 2006/03/16 21:11:13 robertemay Exp $
=head2 SelectedItem
B<SelectedItem()>
See L<GetCurSel()|Win32::GUI::Combobox/GetCurSel>
=for comment $Id: per_package_method.tpl,v 1.3 2006/03/16 21:11:13 robertemay Exp $
=head2 SelectString
B<SelectString(STRING, [INDEX])>
Search for an item that begins with the specified string in the Listbox.
If a matching item is found, it is selected and copied to the Textfield.
=for comment $Id: per_package_method.tpl,v 1.3 2006/03/16 21:11:13 robertemay Exp $
=head2 SetCurSel
B<SetCurSel(INDEX)>
Selects the zero-based INDEX item in the Combobox.
=for comment $Id: per_package_method.tpl,v 1.3 2006/03/16 21:11:13 robertemay Exp $
=head2 SetDroppedWidth
B<SetDroppedWidth(WIDTH)>
Set the maximum allowable width, in pixels, of the Listbox of a Combobox.
=for comment $Id: per_package_method.tpl,v 1.3 2006/03/16 21:11:13 robertemay Exp $
=head2 SetEditSel
B<SetEditSel(START,END)>
Select characters in the textfield. START and END are the
(zero-based) index of the characters to be selected. START
is the index of the first character to be selected, and END
is the index of the first character following the selection.
For example to select the first 4 characters:
$combobox->SetEditSel(0,4);
If START is -1, the any selection is removed. If END is -1,
then the selection is from START to the last character in the
textfield.
Returns 1 on success, 0 on failure and -1 if sent to a
Combobox that does not have a textfield (C<-dropdownlist => 1>).
=for comment $Id: per_package_method.tpl,v 1.3 2006/03/16 21:11:13 robertemay Exp $
=head2 SetExtendedUI
B<SetExtendedUI(FLAG)>
Select either the default user interface or the extended user interface for a Combobox.
=for comment $Id: per_package_method.tpl,v 1.3 2006/03/16 21:11:13 robertemay Exp $
=head2 SetHorizontalExtend
B<SetHorizontalExtend(CX)>
Set the width, in pixels, by which a listbox can be scrolled horizontally (the scrollable width).
=for comment $Id: per_package_method.tpl,v 1.3 2006/03/16 21:11:13 robertemay Exp $
=head2 SetItemHeight
B<SetItemHeight(INDEX,HEIGHT)>
Set the height of list items or the selection field in a Combobox.
=for comment $Id: per_package_method.tpl,v 1.3 2006/03/16 21:11:13 robertemay Exp $
=head2 SetLocale
B<SetLocale(LOCALE)>
Set the current locale of the Combobox.
=for comment $Id: per_package_method.tpl,v 1.3 2006/03/16 21:11:13 robertemay Exp $
=head2 SetTopIndex
B<SetTopIndex(INDEX)>
Ensure that a particular item is visible in the Listbox of a Combobox.
=for comment $Id: per_package_method.tpl,v 1.3 2006/03/16 21:11:13 robertemay Exp $
=head2 ShowDropDown
B<ShowDropDown(FLAG)>
Show or hide the Listbox of a Combobox.
=for comment $Id: per_package_method.tpl,v 1.3 2006/03/16 21:11:13 robertemay Exp $
=head2 TopIndex
( run in 1.213 second using v1.01-cache-2.11-cpan-2398b32b56e )