PDA

View Full Version : I know u r gonna kill me :D ... But What shall I do ?


el5ateer
08-19-2005, 10:02 AM
Hey people ,
Guess what ? Thats me again :D

My project is getting me crazy :s .. Every now and then I get a new idea but this one is a good enough one so I could not make it ...

Well , I want to make the User choose a color from the known color picker :
http://www.indigorose.com/forums/attachment.php?attachmentid=2263&stc=1

and then get the number or the code of the color ( like this : #ffffff ) and put it in between a sentence , I am making a software which uses the vb or bb code or whatever that uses this tag ["color=CODE"]text["/color"] without the (") ,

Anyway , Will anyone bother himself and help me ? :rolleyes

And again , Sorry for disturbance :cool

yosik
08-19-2005, 10:07 AM
Check this site. It might help you:
http://www.vandog.com/colorpicker.html

You can use the DLL and get RGB values of the color.

Yossi

el5ateer
08-19-2005, 10:20 AM
I can not deal with DLL at all .. I am newbie ;)

and thnx for the fast reply :yes

TJ_Tigger
08-19-2005, 10:44 AM
In the following post there is an application and dll that Worm built that allows you to choose a color. In the case of the application it returns the color and colors a shape plugin.

http://www.indigorose.com/forums/showthread.php?t=11518&highlight=color+picker

Tigg

el5ateer
08-19-2005, 10:50 AM
Thanks a lot all of u :yes

TJ_Tigger
08-19-2005, 10:52 AM
You can modify the code as follows to extract the hex characters and place that in a sentence


--call dll function to pick color
result = DLL.CallFunction("AutoPlay\\Docs\\CHCOLOR.DLL", "SelectColor", wnx..",\"FFFFFF\",\"HEX\",\"192;;192;;192\",\"TRUE\"", DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL)
--trim all but the hex field
result = String.Left(result, String.Find(result, "::", 1, false)-1);
--put in sentence
Dialog.Message("result", "[color="..result.."]text['/code']"


without the quotes of course

Tigg

el5ateer
08-20-2005, 12:52 PM
ya , I knew that .. thnx :yes