VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



A Command Button with gradient filter (ActiveX Control) UPDATED

by Sergey Olekhnovich (2 Submissions)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (16 Votes)

Updated! Very nice command button (ActiveX control) with gradient filling. If client screen color depth is 256 colors or less – looks as regular command button. You can change caption-image order (position) from left to right or top to bottom.
When created this control - used two algorithms from www.vbcoders.com.
Want to say personal thank you to:
Rocky Clark (Gradient filter algorithm);
Manuel Augusto Santos (Emboss filter algorithm).
Please rate it!
E-mail bugs to [email protected].
Feel free to use this control in your application (if you'd like to) as much as you want. If you'll modify it - please leave my name in the About box! Enjoy! PS: (Please rate it)

Assumes
Used APIs API functions: GetDeviceCaps, SetPixel, GetDIBits, CreateCompatibleDC, DeleteDC, SelectObject, DeleteObject, GetObject, SetDIBits, GetSysColor, CreatePen, GetClientRect, GetPixel, GetTickCount, LineTo, LockWindowUpdate, MoveToEx, Polygon Structures (types): BITMAP, BITMAPINFOHEADER, RGBQUAD, BITMAPINFO, PointAPI, Constants: BLACKNESS, DSTINVERT, MERGECOPY, MERGEPAINT, NOTSRCCOPY, NOTSRCERASE, PATCOPY, PATINVERT, PATPAINT, SRCCOPY, SRCPAINT, SRCINVERT, SRCERASE, SRCAND, WHITENESS, COLOR_ACTIVEBORDER, COLOR_ACTIVECAPTION, COLOR_ADJ_MAX, COLOR_ADJ_MIN, COLOR_APPWORKSPACE, COLOR_BACKGROUND, COLOR_BTNFACE, COLOR_BTNHIGHLIGHT, COLOR_BTNSHADOW, COLOR_BTNTEXT, COLOR_CAPTIONTEXT, COLOR_GRAYTEXT, COLOR_HIGHLIGHT, COLOR_HIGHLIGHTTEXT, COLOR_INACTIVEBORDER, COLOR_INACTIVECAPTION, COLOR_INACTIVECAPTIONTEXT, COLOR_MENU, COLOR_MENUTEXT, COLOR_SCROLLBAR, COLOR_WINDOW, COLOR_WINDOWFRAME, COLOR_WINDOWTEXT, BITSPIXEL, PS_SOLID
API Declarations
GetDeviceCaps, SetPixel, GetDIBits, CreateCompatibleDC, DeleteDC, SelectObject, DeleteObject, GetObject, SetDIBits, GetSysColor, CreatePen, GetClientRect, GetPixel, GetTickCount, LineTo, LockWindowUpdate, MoveToEx, Polygon
Structures (types):
BITMAP, BITMAPINFOHEADER, RGBQUAD, BITMAPINFO, PointAPI,
Constants:
BLACKNESS, DSTINVERT, MERGECOPY, MERGEPAINT, NOTSRCCOPY, NOTSRCERASE, PATCOPY, PATINVERT, PATPAINT, SRCCOPY, SRCPAINT,
SRCINVERT, SRCERASE, SRCAND, WHITENESS, COLOR_ACTIVEBORDER, COLOR_ACTIVECAPTION, COLOR_ADJ_MAX, COLOR_ADJ_MIN, COLOR_APPWORKSPACE, COLOR_BACKGROUND, COLOR_BTNFACE, COLOR_BTNHIGHLIGHT, COLOR_BTNSHADOW, COLOR_BTNTEXT, COLOR_CAPTIONTEXT, COLOR_GRAYTEXT, COLOR_HIGHLIGHT, COLOR_HIGHLIGHTTEXT, COLOR_INACTIVEBORDER, COLOR_INACTIVECAPTION, COLOR_INACTIVECAPTIONTEXT, COLOR_MENU, COLOR_MENUTEXT, COLOR_SCROLLBAR, COLOR_WINDOW, COLOR_WINDOWFRAME, COLOR_WINDOWTEXT, BITSPIXEL, PS_SOLID

Rate A Command Button with gradient filter (ActiveX Control) UPDATED

Upload

Download this snippet    Add to My Saved Code

A Command Button with gradient filter (ActiveX Control) UPDATED Comments

No comments have been posted about A Command Button with gradient filter (ActiveX Control) UPDATED. Why not be the first to post a comment about A Command Button with gradient filter (ActiveX Control) UPDATED.

Post your comment

Subject:
Message:
0/1000 characters