Init SEToolBarImageList

<< Click to Display Table of Contents >>

Navigation:  SEUIXP Classes for X# > Classes > SEToolBarImageList >

Init SEToolBarImageList

Previous pageReturn to chapter overviewNext page

Purpose

Creates a correct imagelist for SEToolBar or SEMenuXP from a bitmap or resource a resource.

 

Prototype

METHOD Init(oBitmap_oRes, nButtonWidth, xBkColor) CLASS SEToolBarImageList

 

Arguments

<oBitmap_oRes>

Can be a resource or a bitmap object.

If it is a bitmap object, be aware that you load it with LR_CREATEDIBSECTION

oBitmap  := Bitmap{oResource, LR_CREATEDIBSECTION}

[<nButtonWidth>]

A numeric value for the image width.

If not specified, the image width is set to the height of bitmap image.

[<xBkColor>]

Specifies the background color for transparency.

Can be a color object or one of the following numeric constants.

 

Constant            Color

 

COLORBLACK            Black        

COLORBLUE            Blue        

COLORCYAN            Cyan        

COLORGREEN            Green        

COLORMAGENTA    Magenta

COLORRED            Red        

COLORWHITE            White        

COLORYELLOW     Yellow

 

If not specified, the background color is set to the color of the bitmap pixel in the left top corner (in windows coordinates 0,0)