PDA

View Full Version : help with the use of color in AMS 7


autoplmst6
01-23-2008, 04:49 AM
Hi all:

Im setting up a litle project with manipulation label properties using Label.Geproperties and SetProperties and firing in Onclick event via if condition for swith to an colour or another...
But I cant figure how to get a specific color ( example, white colour, until now i dont know how to get it...), is there any kind of rgb to hexadecimal parser color for picking a single colour, I spent hours to get the **** white and other exact colour I want and its frustrating ...Imagine search for a colour from 000000 to 999999 too many number to see..

Anybody know how to get it?

Thanks

longedge
01-23-2008, 06:46 AM
There's dozens of online and free apps to help with this e.g. this (http://www.febooti.com/products/iezoom/online-help/online-color-chart-picker.html).

Intrigued
01-23-2008, 06:28 PM
Hope this helps:

http://www.amsuser.com/ams/examples/ColorOnScreenPicker-AMS6-Intrigued.apz

Just "Build" (F7) it and you are good to go.

RizlaUK
01-23-2008, 09:36 PM
i made a tool a while ago to keep track of the colors im using in certain projects, you can pick any color you want or need and and save it to a database, it returns decimal, hex and rgb color values so its handy for use with any language,

more info and download can be found on the color tool db page of my site
http://www.dnet-software.com/site/colortooldb.html

autoplmst6
01-24-2008, 06:32 AM
Hi:
Thanks all for the provided solutions :D wins intrigued with that easy app ( no offense to riz and people for help me!) . Many thanks to all folks!

PD: the true color code for white in table color properties (label, input...) is:
16777215 mm..those strings of numbers has 8 numbers.. I thought hexadecimal was 6 numbers. Interesting

Many thanks again.
Autoplmst6.

Intrigued
01-24-2008, 04:23 PM
Hi:
Thanks all for the provided solutions :D wins intrigued with that easy app ( no offense to riz and people for help me!) . Many thanks to all folks!

PD: the true color code for white in table color properties (label, input...) is:
16777215 mm..those strings of numbers has 8 numbers.. I thought hexadecimal was 6 numbers. Interesting

Many thanks again.
Autoplmst6.

They are decimal color code numbers.

Lorne
01-25-2008, 11:00 AM
Tip: You can use Math.HexColorToNumber() and Math.HexToNumber() to convert from hex to decimal.

Roboblue
02-08-2008, 08:21 PM
Here (http://www.durotechs.com/download/DuRoMatic.rar) is free color picker/palette builder I made in AMS.

If anyone wants it, I'll upload the .apz so you can build off it.
It has a lot of WORM's and Dermot's stuff in it, too.

I just noticed it doesn't work properly in Vista. I don't have time to look at it for a while.
It looks like it's WORM's Color Dialog plugin not compatible with Vista.
I''ll contact him and ask about it.

RizlaUK
02-08-2008, 09:55 PM
hey robo, the dialog plugins do cause a error on vista, i had the same problem when i made my color tool so i made my own dll to do the job.

this dll dose everything the plugin dose :yes
http://www.indigorose.com/forums/showthread.php?t=19781

Roboblue
02-09-2008, 08:41 AM
Thanx!
I'll phase it in when I get a chance.