[TBD]
Common methods apply to most windows, controls and resources.
new(X, Y, FLAGS, INITAL, GROW)
Creates an ImageList object; X and Y specify the size of the images, FLAGS [TBD]. INITIAL and GROW specify the number of images the ImageList actually contains (INITIAL) and the number of images for which memory is allocated (GROW).
See also the common options.
newFromImage(IMAGE,CX,[FLAG=LR_LOADFROMFILE],[TYPE=IMAGE_BITMAP],[COLORMASK=CLR_DEFAULT],[HINSTANCE=NULL],[GROW=1])
See LoadImage()
Add(BITMAP, [BITMAPMASK])
Adds a bitmap to the ImageList; both BITMAP and BITMAPMASK can be either Win32::GUI::Bitmap objects or filenames.
AddBitmap(BITMAP, [BITMAPMASK])
Adds a Win32::GUI::Bitmap object to the ImageList. BITMAPMASK is optional. See also Add().
AddBitmapMasked(BITMAP, COLORMASK)
Adds a Win32::GUI::Bitmap object to the ImageList. COLORMASK is color used to generate the mask. See also AddMasked().
AddIcon(ICON)
Add a icon specified by ICON (must be a Win32::GUI::Icon object).
AddMasked(BITMAP, COLORMASK)
Adds a bitmap to the ImageList; BITMAP can be either Win32::GUI::Bitmap object or filename.
BackColor([COLOR])
Gets or sets the background color for the ImageList.
BeginDrag(INDEX, X, Y)
Creates a temporary image list that is used for dragging.
Clear()
Removes all the images from the ImageList.
Count()
Returns the number of images in the ImageList.
Create(X, Y, FLAGS, INITAL, GROW)
Creates a new image list. See new()
Destroy()
Destroys an image list.
DragEnter(WINDOW, X, Y)
Locks updates to the specified window during a drag operation and displays the drag image at the specified position within the window.
Class method : Win32::GUI::ImageList::DragEnter($window, $x, $y)
DragLeave(WINDOW)
Unlocks the specified window and hides the drag image, allowing the window to be updated.
Class method : Win32::GUI::ImageList::DragLeave($window)
DragMove(X, Y)
Locks updates to the specified window during a drag operation and displays the drag image at the specified position within the window.
Class method : Win32::GUI::ImageList::DragMove($x, $y)
DragShowNolock(FLAG)
Shows or hides the image being dragged.
Class method : Win32::GUI::ImageList::DragShowNolock($flag)
Draw(INDEX, DC, X, Y, [STYLE=ILD_NORMAL])
Draws an image list item in the specified device context.
DrawEx(INDEX, DC, X, Y, DX, DY, BKCOLOR, FGCOLOR, [STYLE=ILD_NORMAL])
Draws an image list item in the specified device context. The function uses the specified drawing style and blends the image with the specified color.
DrawIndirect(INDEX, DC, X, Y, CX, CY, XBITMAP, YBITMAP, BKCOLOR, FGCOLOR, [STYLE=ILD_NORMAL], [ROP=SRCCOPY])
Draws an image list item in the specified device context.
Duplicate()
Creates a duplicate of an existing image list. Return a new Win32::GUI::ImageList object.
EndDrag()
Ends a drag operation.
Class method : Win32::GUI::ImageList::EndDrag()
GetBkColor()
Retrieves the current background color for an image list.
GetDragImage()
Retrieves the temporary image list that is used for the drag image.
Class method : Win32::GUI::ImageList::GetDragImage()
GetIcon(index, [flags=ILD_NORMAL])
Creates an Win32::GUI::Icon object from an image and mask in an image list.
GetIconSize()
Retrieves the dimensions of images in an image list. All images in an image list have the same dimensions.
GetImageCount()
See Count()
LoadImage(IMAGE,CX,[FLAG=LR_LOADFROMFILE],[TYPE=IMAGE_BITMAP],[COLORMASK=CLR_DEFAULT],[HINSTANCE=NULL],[GROW=1])
Return a new Win32::GUI::ImageList object.
Merge(INDEX1,INDEX2, DX,DY,[IMAGELIST=SELF])
Creates a new image by combining two existing images. The function also creates a new image list in which to store the image. Return a new Win32::GUI::ImageList object.
Remove(INDEX)
Removes the specified zero-based INDEX image from the ImageList.
RemoveAll()
See Clear()
Replace(INDEX, BITMAP, [BITMAPMASK])
Replaces the specified zero-based INDEX image with the image specified by BITMAP (must be a Win32::GUI::Bitmap object). BITMAPMASK is optional.
ReplaceIcon(INDEX, ICON)
Replaces the specified zero-based INDEX image with the icon specified by ICON (must be a Win32::GUI::Icon object).
SetBkColor(COLOR)
Sets the background color for an image list.
SetDragCursorImage(INDEX, X, Y)
Creates a new drag image by combining the specified image (typically a mouse cursor image) with the current drag image.
SetIconSize(CX, CY)
Sets the dimensions of images in an image list and removes all images from the list.
SetImageCount(COUNT)
Resizes an existing image list.
SetOverlayImage(INDEX, OVERLAY)
Adds a specified image to the list of images to be used as overlay masks.
Size([X, Y])
Gets or sets the size of the images in the ImageList; if no parameter is given, returns a 2 element array (X, Y), otherwise sets the size to the given parameters. If X and Y is given, also removes all images from the list.
Common events apply to most windows and controls.
Documentation for Win32::GUI v1.06 created 13 Feb 2008
This document is autogenerated by the build process. Edits made here will be lost. Edit docs/per_package.tpl instead.
Homepage: http://perl-win32-gui.sourceforge.net/.
For further support join the users mailing list(perl-win32-gui-users@lists.sourceforge.net
) from the website
at http://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users. There is a searchable list archive at http://sourceforge.net/mail/.
Copyright (c) 1997..2008 Aldo Calpini. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.