Win32-GUI
view release on metacpan or search on metacpan
Combobox.xs view on Meta::CPAN
ResetContent(handle)
HWND handle
ALIAS:
Win32::GUI::Combobox::Reset = 1
Win32::GUI::Combobox::Clear = 2
CODE:
RETVAL = SendMessage(handle, CB_RESETCONTENT, 0, 0);
OUTPUT:
RETVAL
###########################################################################
# (@)METHOD: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.
LRESULT
SelectString(handle,string,index=-1)
HWND handle
LPCTSTR string
long index
CODE:
RETVAL = SendMessage(handle, CB_SELECTSTRING, (WPARAM) index, (LPARAM) string);
OUTPUT:
RETVAL
###########################################################################
# (@)METHOD:SetCurSel(INDEX)
# (@)METHOD:Select(INDEX)
# Selects the zero-based INDEX item in the Combobox.
LRESULT
SetCurSel(handle,index)
HWND handle
WPARAM index
ALIAS:
Win32::GUI::Combobox::Select = 1
CODE:
RETVAL = SendMessage(handle, CB_SETCURSEL, index, 0);
OUTPUT:
RETVAL
###########################################################################
# (@)METHOD:SetDroppedWidth(WIDTH)
# Set the maximum allowable width, in pixels, of the Listbox of a Combobox.
LRESULT
SetDroppedWidth(handle,index)
HWND handle
WPARAM index
CODE:
RETVAL = SendMessage(handle, CB_SETDROPPEDWIDTH, index, 0);
OUTPUT:
RETVAL
###########################################################################
# (@)METHOD: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>).
LRESULT
SetEditSel(handle,start,end)
HWND handle
UINT start
UINT end
CODE:
RETVAL = SendMessage(handle, CB_SETEDITSEL, 0, MAKELPARAM(start, end));
OUTPUT:
RETVAL
###########################################################################
# (@)METHOD:SetExtendedUI(FLAG)
# Select either the default user interface or the extended user interface for a Combobox.
LRESULT
SetExtendedUI(handle,index)
HWND handle
WPARAM index
CODE:
RETVAL = SendMessage(handle, CB_SETEXTENDEDUI, index, 0);
OUTPUT:
RETVAL
###########################################################################
# (@)METHOD:SetHorizontalExtend(CX)
# Set the width, in pixels, by which a listbox can be scrolled horizontally (the scrollable width).
LRESULT
SetHorizontalExtend(handle,index)
HWND handle
WPARAM index
CODE:
RETVAL = SendMessage(handle, CB_SETHORIZONTALEXTENT, index, 0);
OUTPUT:
RETVAL
# TODO : CB_SETITEMDATA
###########################################################################
# (@)METHOD:SetItemHeight(INDEX,HEIGHT)
# Set the height of list items or the selection field in a Combobox.
LRESULT
SetItemHeight(handle,wparam,lparam)
HWND handle
WPARAM wparam
WPARAM lparam
CODE:
RETVAL = SendMessage(handle, CB_SETITEMHEIGHT, wparam, (LPARAM) lparam);
OUTPUT:
RETVAL
###########################################################################
# (@)METHOD:SetLocale(LOCALE)
# Set the current locale of the Combobox.
LRESULT
( run in 0.734 second using v1.01-cache-2.11-cpan-2398b32b56e )