MCL Shaped button control

Merrion
12-11-2001, 04:38 AM
The MCL Region Button control is a button which takes it's shape (region) from whatever picture is set to it. It has four states which may each have different pictures - disabled, up, down and hover.

-------------------------------------
Release: 1.0.0
Release date: 11 December 2001

Revision history
-------------------
First Beta release

How to use it
----------------
Drop the control on your form then set the DisabledPicture, UpPicture, DownPicture and HoverPicture
properties.

---------------------------------
(c) 2001 Merrion Computing Ltd
See home page (http://www.Merrioncomputing.com) for updates.

Merrion
12-12-2001, 06:54 AM
Version 2

A few improvements and a nicer image for the example...check out this clickable parrot control.

Api Calls used:
<font color=blue>
TrackMouseEvent - Force windows to generate WM_MOUSEHOVER and WM_MOUSELEAVE messages for your control
GetDiBits - Fill an array with a bitmap's colour information
RTLMoveMemory - Copy data from one memory location to another
SetWindowRegion - Make a window non-rectangular
</font color=blue>

Merrion
07-31-2002, 08:03 AM
Another one where the attachment went AWOL - reposted

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum