Pencil to Browse tool switch
Doug Lerner
doug at webcrossing.com
Thu Jan 8 01:50:42 EST 2004
On 1/8/04 8:25 AM, "Richard Gaskin" <ambassador at fourthworld.com> wrote:
>> This should be basic, but it doesn't want to cooperate.
>>
>> I have a button which chooses the pencil tool so the user can draw in
>> an image rectangle. There is also a button to choose the eraser tool
>> that works fine if the browser tool is active, but it will not respond
>> if clicked when the pencil tool is active.
>>
>> The cursor also remains as the pencil (doesn't switch to an arrow as
>> the documentation states it should) even after moving out of the image
>> rectangle. I know many commands require the browse tool to operate but
>> I need a way for the user to switch from the pencil to the eraser. Any
>> solutions?
This combination is working for me. It works for all the tools except the
dropper tool, for some reason.
In the select button:
on menuPick pWhich
set the label of button "selectTool" to pWhich
choose pWhich tool
end menuPick
In the image:
on mouseLeave
choose browse tool
pass mouseLeave
end mouseLeave
doug
More information about the use-livecode
mailing list