Preserved Topic: mr max |
|
---|---|
Author | Thread |
Paranoid (IV) Inmate From: us |
posted 03-23-2001 03:44
how did you get the hexcolor in your program. i think you didn't make it in visual basic, but i have that and i want something similar. I can get the same window up by commondialog.showcolor and then i can get a color from it. I think the color is in hex, but not the kind you use on a webpage. I can get a hex value by hex$(commondialog.color) but it isn't always 6 charactors. Know what i should do? |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 03-23-2001 09:05
No, MAX's HTML Beauty++ ME is completely JAVA free... |
Paranoid (IV) Inmate From: us |
posted 03-23-2001 17:20
thats just what i wanted. Sometimes it doesn't give 6 chars even if you don't use a 0. Is it ok to only use like a 3 or 4 character hex color on a webpage? i've seen it done only once. |
Maniac (V) Mad Scientist From: Solitary confinement |
posted 03-23-2001 17:26
Got good things to say about Beauty. Use it exclusively now |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 03-23-2001 23:18
JakeB, I would suggest you to always use complete hex color values (six places - #RRGGBB). Simplified versions that contain only three places can be used in CSS, but I wouldn't recommend you to use them there (FYI In simplified version two places are the same, AABBCC -> ABC) |
Paranoid (IV) Inmate From: us |
posted 03-24-2001 00:24
then what should i do cause your code doesn't always give 6 charactors, sometimes it gives 6, somtimes 4, somtimes3. |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 03-24-2001 01:07
Hmm, I wonder how is that possible, Format() should add additional zeroes!? Anyway, for what RGB values you get 4 and 3 chars? Also, maybe you should try a different approach - store hex values for R, G, B values in separate strings and then check if string length is 1 and in that case add additional 0 in front and finally assemble those three string together... |
Paranoid (IV) Inmate From: us |
posted 03-24-2001 06:11
heres some rgb then the hex it gave me |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 03-24-2001 08:16 |