Hi Trevor,

The easiest solution to take care of multiple clicks is to set the cursor to watch while the script is running. If you are running a handler with messages, you might need to set a property.

on mouseUp
  if the cRunning of me is false then
    set the cRunning of me to true
    repeat forever with messages
      -- do whatever you need in your repeat loop
      -- exit repeat when finished
    end repeat
    set the cRunning of to false
  else
    beep
  end if
end mouseUp

You can change the icon in the dock using the icon property: set the icon of this stack to 1234 (1234 would be the number of an image).

Best,

Mark

--

Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz

Get your store on-line within minutes with Salery Web Store software. Download at http://www.salery.biz

Op 29-sep-2006, om 9:12 heeft Trevor Hopkins het volgende geschreven:

I have a button that, when clicked, runs a process that takes a few seconds. I'd like to do a little error prevention and prevent the user from accidentally clicking on it multiple times while it is already processing. Currently, if the button is clicked and then clicked multiple times before the first process is done, the mouseUp script will run over and over again after each script is completed.

Any ideas?

Secondly, does anyone know of a way to change the dock's icon (OS X) of your application while it is running?

Cheers,

Trevor Hopkins
Exeter, UK

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to