Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 6 of 6
  1. #1
    Join Date
    May 2006
    Posts
    5,380

    DLL Color Dialog, Picker, X,Y

    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
    Last edited by RizlaUK; 02-01-2009 at 11:35 AM.
    Open your eyes to Narcissism, Don't let her destroy your life!!

  2. #2
    Join Date
    Oct 2006
    Location
    London, UK
    Posts
    351
    Theres a color dialog feature added to my FstDLL - HERE

    Theres a bug, when your click cancel on the color dialog.
    Last edited by mz241508; 05-03-2007 at 10:05 AM.

  3. #3
    Join Date
    May 2006
    Posts
    5,380
    thanks for pointing that out

    add the red lines to the color dialog button

    Code:
    -- 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
    Last edited by RizlaUK; 02-01-2009 at 11:35 AM.
    Open your eyes to Narcissism, Don't let her destroy your life!!

  4. #4
    Join Date
    Mar 2004
    Location
    Toronto, ON CANADA
    Posts
    696
    I can confirm that this does work with Windows Vista.

    Thanks for the offering RizlaUK!

  5. #5
    Join Date
    Dec 2004
    Location
    Texas
    Posts
    239
    Thanks RizlaUK, this works great!

  6. #6
    Join Date
    May 2006
    Posts
    5,380
    I can confirm that this does work with Windows Vista.
    Thanks Tek

    and no problem guys, glad i can produce stuff you can use
    Open your eyes to Narcissism, Don't let her destroy your life!!

Similar Threads

  1. DLL - Decimal Number - Color Picker - Intrigued
    By Intrigued in forum AutoPlay Media Studio 6.0
    Replies: 23
    Last Post: 01-17-2006, 03:59 PM
  2. Official Release Of SetMask DLL
    By Worm in forum AutoPlay Media Studio 5.0
    Replies: 23
    Last Post: 01-24-2005, 09:00 PM
  3. Windows Color Picker
    By JimS in forum AutoPlay Media Studio 4.0
    Replies: 23
    Last Post: 09-11-2003, 08:59 AM
  4. Slider Widget, Color Picker Widget
    By JimS in forum AutoPlay Media Studio 4.0
    Replies: 5
    Last Post: 05-23-2003, 08:42 PM
  5. SUF6 - Call DLL action
    By Romahe in forum Setup Factory 5.0
    Replies: 1
    Last Post: 11-27-2001, 06:02 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts