T O P I C R E V I E W |
yogiyang |
Posted - May 31 2016 : 09:40:02 Hello,
I want to show the user a color palette when a button is clicked.
In this color palette I want to show predefined colors.
What is the best way to do this. Is there any sample showing a predefined color palette?
TIA
Yogi Yang |
4 L A T E S T R E P L I E S (Newest First) |
w2m |
Posted - Jun 02 2016 : 17:03:58 You can load a palette by using mbColorPalette which is part of the mbColorTools. The palette colors are loaded from a stringlist of colors that you can create manually or the palette colors can be loaded from the IEBitmap.Palette. The mbColorPalette can contain any number of colors.
Download Color Library: https://www.dropbox.com/s/m41hh9xrnsqh815/mbColorLib.zip?dl=0 or http://mxs.bergsoft.net/index.php?p=2
Download Demo: attach/w2m/201652692951_PaletteColor.zip 57.27 KB
Bill Miller Adirondack Software & Graphics Email: w2m@hughes.net EBook: http://www.imageen.com/ebook/ Custom Commercial ImageEn Development |
yogiyang |
Posted - Jun 01 2016 : 01:29:18 Wow!!! Thanks for this.
That will help me a lot!
TIA
Yogi Yang |
w2m |
Posted - May 31 2016 : 10:43:01 Please post link. Gradient vcl: http://www.delphiarea.com/?dl_id=13
Bill Miller Adirondack Software & Graphics Email: w2m@hughes.net EBook: http://www.imageen.com/ebook/ Custom Commercial ImageEn Development |
yogiyang |
Posted - May 31 2016 : 10:39:06 Ok
Found this beautiful mncolor vcl.
Now I have been able to show user a palette from which to select.
But now I have another problem.
How to fill Layer 0 with a Gradian color between to selected colors by user?
TIA
Yogi Yang |