• ** There has been a recent site upgrade. Please clear your browser cache to avoid issues. **
  • New forum feature - post voting and best solution

    Check out this thread for the details: https://www.access-programmers.co.uk/forums/threads/new-forum-feature-post-voting-and-best-answer.314134/

    This new feature looks great to me! :)

  • We now have 3 forum themes

    Go for the default (light) theme, Shades of Grey or Shades of Blue. I just added the Blue one.

    The thread about it is here: https://www.access-programmers.co.uk/forums/threads/new-forum-theme-shades-of-blue.314136/

Colour converter / selector (1 Viewer)

Status
Not open for further replies.

isladogs

CID VIP
Local time
Today, 13:33
Joined
Jan 14, 2017
Messages
13,955
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: 279
  • ColourConverter2.PNG
    ColourConverter2.PNG
    14.9 KB · Views: 819
  • ColourCategories.PNG
    ColourCategories.PNG
    23.1 KB · Views: 792
Last edited:

riti90

Registered User.
Local time
Today, 13:33
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: 136
Last edited by a moderator:

isladogs

CID VIP
Local time
Today, 13:33
Joined
Jan 14, 2017
Messages
13,955
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

CID VIP
Local time
Today, 13:33
Joined
Jan 14, 2017
Messages
13,955
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: 138
Status
Not open for further replies.

Users who are viewing this thread

Top Bottom