Changing Tools
Posted: Thu Nov 07, 2013 12:29 am
Hi all,
I am trying to write a stack/script that imports a snap shot, creating a new image, that the user can manipulate, ie... 'draw' on the image with the pencil, 'move' the image with the 'pointer', etc.... (Importing the image is easy with the "import snapshot" command).
Anyway, I am trying to come up with a way for the user to change 'tools' - including browse, pointer, pencil, eraser.
The mouse.. "up, down, enter, leave" commands do not behave the same or "trigger" the same "messages" depending the tool in use.
I've tried setting up buttons that have a mouseUp script that changes the "tool" ... but as expected when the "tool" is the pencil, I can not 'click' on a button with a mouseUp script and get it to 'work' because the mouseUp message is not generated (it is generated only when the browse tool is in use). So once I change the tool to the pencil, I can't change it back.
Hopefully I am somewhat clear...
So, how would you let a user to change tools in a stack?
Sorry if this is real basic stuff. Would appreciate an answer.
Thanks in advance.
John
I am trying to write a stack/script that imports a snap shot, creating a new image, that the user can manipulate, ie... 'draw' on the image with the pencil, 'move' the image with the 'pointer', etc.... (Importing the image is easy with the "import snapshot" command).
Anyway, I am trying to come up with a way for the user to change 'tools' - including browse, pointer, pencil, eraser.
The mouse.. "up, down, enter, leave" commands do not behave the same or "trigger" the same "messages" depending the tool in use.
I've tried setting up buttons that have a mouseUp script that changes the "tool" ... but as expected when the "tool" is the pencil, I can not 'click' on a button with a mouseUp script and get it to 'work' because the mouseUp message is not generated (it is generated only when the browse tool is in use). So once I change the tool to the pencil, I can't change it back.
Hopefully I am somewhat clear...
So, how would you let a user to change tools in a stack?
Sorry if this is real basic stuff. Would appreciate an answer.
Thanks in advance.
John