The new vbAccelerator Site - more VB and .NET Code and Controls
Source Code
1 VB 5 Custom Controls &nbsp


NOTE: this code has been superceded by the version at the new site.



&nbsp

Using the Icon Menu control to create a Colour Picker

Demonstration Project

VB5 codeDownload the Colour Picker Menu demonstration project (16kb)

&nbsp Before you Begin &nbsp
&nbsp This project requires the Icon Menu control. Make sure you have loaded and registered this before trying the project. &nbsp
&nbsp This project requires the vbAccelerator ImageList control. Make sure you have loaded and registered this before trying the project. &nbsp
&nbsp The Icon Menu control requires the SSubTmr.DLL component. Make sure you have loaded and registered this before trying the project. &nbsp
This project demonstrates how to use the new Caption shortcuts in the Icon Menu control to create multiple column menus which don't have separators. By adding the hat character ("^") to the beginning of a menu caption, the Icon Menu control will start a new menu column without a separator line. (Use the pipe "|" character to create a break with a separator).

In addition to this, the project shows how to programmatically create a web-safe colour palette, add the colours to a bitmap and then load the bitmap into a vbAccelerator Image List.

This is not the fastest, most memory efficient or smoothest way to create a colour picker in your application. Await the forthcoming colour picker control for that! However the project does demonstrate the flexibility of the Icon Menu control and how it handles large numbers of menu items.



TopBack to top

Source Code - What We're About!Back to Source Code

&nbsp


NOTE: this code has been superceded by the version at the new site.



AboutContributeSend FeedbackPrivacy

Copyright 1998-1999, Steve McMahon ( steve@vbaccelerator.com). All Rights Reserved.
Last updated: 10 January 1999