Hover button - FOR FREE

Garrett Sever
09-14-2001, 07:40 AM
All, in my quest for improving your user interfaces, I've written a simple version of the much sought-after Hover Button. While this is a "light" version, I have included the following features:

1. Picture can change depending when in the "Hover" state
2. Borders can be thick or thin
3. Borders can be specified as "popup" which means they appear when in the "hover" state
4. The text can be highlighted when in a "hover" state
5. A background texture may be used
6. Any combination of styles can be used together, for example "Popup" and "Thin" and "Text" can all be used simultaneously.

Screenshot is attached, and source code will be in the following post.

Sure sure sure, I could have added alot to this control, such as ForeColor, BackColor, other highlight styles like shadow and ditherBackground, Rotatable text, left/right/top/bottom alignment, left/right/top/bottom image alignment, etc etc etc. but this is a starting point.

Perhaps one of these days, if I feel benevolent enough, I'll post my full-blown hover control's code. Right now it will have to stay with me and the select few that have it.

Enjoy and regards.
-<font color=purple>The Hand</font color=purple>

<font color=green>All your code are belong to us...</font color=green> images/icons/tongue.gif

Garrett Sever
01-15-2002, 01:04 PM
HoverCommand has been updated to include many of the features listed above, including:

1) Font property
2) Fore/Back/HighlightColor properties
3) Left/Center/Right alignment
4) Disabled property
5) Ability to grab background from its parent's DC (if AutoRedraw=True)
6) GotFocus/LostFocus support

Other little tweaks.

Garrett Sever
01-15-2002, 01:04 PM
SOURCE CODE:

Garrett Sever
05-30-2002, 08:49 AM
The extended/newer version of the HoverCommand can be found here (http://www.elitevb.com/content.asp?id=44) on EliteVB.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum