Page 1 of 1

Dropper tool

Posted: Tue May 12, 2009 6:47 pm
by jmburnod
Hi All,

I'm very happy to discover a dropper tool in Revolution.
I try with a simple "choose dropper tool" :

The cursor change but it change after the clic to the browse tool and the pencolor dont change.

Something else is necessary ?

Thank

Jean-Marc

Posted: Wed May 13, 2009 7:13 am
by Mark
Dear Jean-Marc,

I'm a little surprised too, that the tools palette doesn't pick up the pencolor after this property is set by the dropper tool. Here's an example that might help you:

Code: Select all

on mouseUp
     choose dropper tool
     repeat until not (the tool is "dropper tool") with messages
          put the pencolor
          wait 20 millisecs with messages
     end repeat
end mouseUp
Best regards,

Mark

Posted: Wed May 13, 2009 10:36 am
by bn
Jean-Marc,

I cant get the dropper tool to work in any meaningful way either. May be I miss something, for me it does pick up the color but does not revert the tool state, it stays in dropper mode.

Has anybody a working example for the dropper tool?

Marks example does not realy work for me either, it reverts when I click on the tools palette, but not when I click on anything else.

regards
Bernd

Dropper tool

Posted: Wed May 13, 2009 5:02 pm
by jmburnod
Thanks Mark and Bernd,

The Mark'script work fine from a substack opended as palette (a tool palette)

A clic with the dropper tool change automaticaly the pencolor.
For the brushcolor it is necessary to "set the brushcolor to the pencolor"

Code: Select all

on mouseUp
  choose dropper tool
     repeat until not (the tool is "dropper tool") with messages
          set the brushcolor to  the pencolor
          set the backgroundcolor of grc "CurCol" to the pencolor
          wait 20 millisecs with messages
     end repeat 
end mouseUp
All the best

Jean-Marc