View Full Version : DLL Color Dialog, Picker, X,Y
RizlaUK
05-03-2007, 10:42 AM
ok, heres a little dll i made to use in one of my apps and as worms color dialog seems to have a vista issue i thought i would post it for you guys (although this is untested on vista so far)
this dll has all the functions that the color dialog plugin has ie: get pixel color from mouse position, get pixel color from screen x,y, and show color dialog
As always, C&C Welcome
mz241508
05-03-2007, 10:59 AM
Theres a color dialog feature added to my FstDLL - HERE (http://mz.phpnet.us/phpBB3/viewtopic.php?f=19&t=4)
Theres a bug, when your click cancel on the color dialog.
RizlaUK
05-03-2007, 11:14 AM
thanks for pointing that out
add the red lines to the color dialog button
-- show the color dialog
result = DLL.CallFunction("AutoPlay\\Docs\\ColorDlgPlugin.dll", "ShowColorDlg", "", DLL_RETURN_TYPE_STRING, DLL_CALL_STDCALL);
if result ~= "-1" then
-- convert the returned string to a table (function in globals)
tbResults = DelimitedStringToTable(result,"|");
-- convert the table stringe in to numbers
Dec = String.ToNumber(tbResults[1]);
Red = String.ToNumber(tbResults[2]);
Green = String.ToNumber(tbResults[3]);
Blue = String.ToNumber(tbResults[4]);
-- show the result
Input.SetText("inp_dec", Dec)
Shape.SetFillColor("Plugin1", Dec);
Input.SetText("inp_red", Red)
Input.SetText("inp_green", Green)
Input.SetText("inp_blue", Blue)
-- get the hex value from the red, green, blue values (function in globals)
Hex = GetHexString(Red, Green, Blue)
Input.SetText("inp_hex", Hex)
end
or download the updated apz
I can confirm that this does work with Windows Vista.
Thanks for the offering RizlaUK! :yes
mindstitchdr
05-03-2007, 11:23 AM
Thanks RizlaUK, this works great!
RizlaUK
05-03-2007, 11:39 AM
I can confirm that this does work with Windows Vista.
Thanks Tek :yes
and no problem guys, glad i can produce stuff you can use ;)
Powered by vBulletin™ Version 4.0.6 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.