Color pallet and picker (1 Viewer)

jfgambit

Kinetic Card Dealer
Local time
Today, 13:12
Joined
Jul 18, 2002
Messages
798
A car company currently has a Color field in main table of their database that is linked to a sub table containing a list of colors (black, red, blue, yellow, etc). I want to change it so that on the Main form, when a user clicks a command button the color pallet appears and they can select the color from the already preset colors or customize the color and then have the color number stored in the color field. Does anyone know if this is possible?
 

Fizzio

Chief Torturer
Local time
Today, 13:12
Joined
Feb 21, 2002
Messages
1,885
A possible way of doing this is to create your own colour palette using an unbound form and either textboxes or labels with each of them filled with the colour of your choice.
When the command button is pressed to select the colour, it opens this popup form and on the on_click event of the coloured control, passes the value of the colour to the previous form and closes the palette.

Hope this makes sense.

As far as creating new colours, it depends if you want an actual colour representation or simply a text description. The former would be tricky (although propably not impossible!)
 
Last edited:

Fizzio

Chief Torturer
Local time
Today, 13:12
Joined
Feb 21, 2002
Messages
1,885
After a bit of tinkering and code ripping, here is an example of how you can create your own colour library, using the colour picker.
 

Attachments

  • colourpicker.zip
    29.6 KB · Views: 476

jfgambit

Kinetic Card Dealer
Local time
Today, 13:12
Joined
Jul 18, 2002
Messages
798
Fizzio:

WOW!!!

Great Job...this is exactly what we needed! Thanks!
 

Users who are viewing this thread

Top Bottom