Skip to content

Properties, Events, Methods

Carlos Alloatti edited this page May 30, 2017 · 3 revisions

DropDownClick (Event)

Fired when the user clicks the right part of a splitbutton control

Remarks:

Usually the code in this event should display a dropdown menu. The dropdown menu generation code is not implemented yet, I use a separate class for generic context menus for this, that I will integrate some day into this classes.


Picture (Property)

Specifies the picture displayed in the control. There is no need to specify additional pictures, the downpicture and disabled pictured are automatically created from this picture. Actually, three aditional pictures are created, one each for HOT, PRESSED and DISABLED states. The HOT state picture is slightly brighter, the PRESSED picture is a bit darker, and the disabled picture uses the same color matrix used by the Net Framework to create disabled pictures.

The picture specified can be any format or size, the class converts, resizes, and applies transparency as needed.

Pictures do not have to be of a certain size to be used as a control picture. The control can automagically adjust the picture size. The picture file format can be any type supported by GDI+ : BMP, GIF, JPEG, PNG, TIFF, Exif, WMF, and EMF.

For formats that do not have transparency, like bmp, the control assumes the color of the top left pixel of the image should be made transparent.


PicturePosition (Property)

All values 0 to 14 are supported.

Clone this wiki locally