Colour converter / selector (1 Viewer)

Status
Not open for further replies.

isladogs

MVP / VIP
Local time
Today, 08:37
Joined
Jan 14, 2017
Messages
18,186
I have previously posted the original version of this colour converter utility when replying to several questions over the last year. However, as I had trouble finding it, I am now posting an updated version here.

This is a simple application to demonstrate two different methods for selecting and converting colours

1. The colour converter utility can be used to select a colour and view its OLE colour, RGB and HEX values OR to convert colour values between these formats
This is a modified version of a utility by Daniel Pineault which is available at his DevHut website



2. The colour categories utility is intended to assign colours to particular types of event in e.g.a calendar event application.
It also includes the use of the MS colour picker control

To use either of these in your own applications:
1. Colour converter
Copy the form frmColourConverter and module modColourConvert
2. Colour categories
Copy the form frmColourCategories, rptCalendarCategories and module modColorChooser

See this post by The_Doc_Man for a very clear & detailed explanation of how RGB & hex colour values are related

 

Attachments

  • ColourConverter v2.zip
    80.1 KB · Views: 748
  • ColourConverter2.PNG
    ColourConverter2.PNG
    14.9 KB · Views: 2,085
  • ColourCategories.PNG
    ColourCategories.PNG
    23.1 KB · Views: 2,119
Last edited:

riti90

Registered User.
Local time
Today, 08:37
Joined
Dec 20, 2017
Messages
44
Hi Colin,

That certainly is a great tool.
I've modified it to work on 64 bit access too.
Hope it'll be of help to anyone. :) :)

Regards,
Margarit
 

Attachments

  • ColourConverter v2a.zip
    161.2 KB · Views: 593
Last edited by a moderator:

isladogs

MVP / VIP
Local time
Today, 08:37
Joined
Jan 14, 2017
Messages
18,186
Oops. Thought I'd done that.

Thanks for doing the conversion Margrit
I'll have a look at the updated code later

Just a reminder to report your own posts to moderated areas or these can get overlooked
 

isladogs

MVP / VIP
Local time
Today, 08:37
Joined
Jan 14, 2017
Messages
18,186
Further minor updates to version 2.0b

a) Added Option Explicit to module modColourConvert (originally from devhut.net) and defined all variables explicitly
b) Removed some superfluous module code

Rechecked in both 32-bit & 64-bit. Thanks again to Margarit
 

Attachments

  • ColourConverter v2b.zip
    70.8 KB · Views: 530
Status
Not open for further replies.

Users who are viewing this thread

Top Bottom