I have a field with locked text that contains a number. Above it, I have a button with a plus in it and below it, I have a button with a minus in it. As you can guess, clicking the plus button increments the number and pressing the minus button decrements it. (I actually have 6 of these locked fields with corresponding plus/minus buttons.)

Unfortunately, when I click these buttons the UI doesn't respond as quickly as I think it should nor does it always respond in the same amount of time. Sometimes it takes a significant fraction of a second for the button click and resulting handlers to finish. The scripts are not complex.
For instance, the plus button above the right most field simply has this in its script:
Code: Select all
on mouseUp pButtonNumber
handleAddSecond
end mouseUp
Code: Select all
on handleAddSecond
incrementUptoMax "SecondsOnes", 9
end handleAddSecond
Code: Select all
on incrementUptoMax pField, pMax
if field pField < pMax then
put (field pField + 1) into field pField
end if
end incrementUptoMax
I was quite surprised by this slowness and inconsistency of response time in the UI. To the point that I rebooted my machine and even downloaded and installed LC 7.1.4 to see if I'd get the same behavior, which I did. I also built a standalone to see if its just something happening in the development environment but, unfortunately, I get the same behavior in the standalone.
To further test it, and because I definitely want this project deployed on Mac, I created the exact same UI in Supercard with essentially the same code (with the minor syntax differences "cd field" instead of "field") and when I click the buttons, the increment or decrement of the number in the locked fields is nearly instantaneous and as quickly as I click, the events fire and the handlers execute and update.
I'm puzzled as to why LC is having this slow, erratic behavior and if there's something I can do to alleviate it because I'd like to build my project with LC and be able to deploy on Mac, Win, & Lin.
Any help or insight is appreciated.