Jump to content


Preventing scaling whilst delivering a message

Moderator Tag

Recommended Posts

I have an application wherein the user must do something first before they can scale items.


I know how to lockScale, which might suffice, but I might want to show the resize cursor, yet display a message (and/or play a sound, or something else) when the user actually tries to do the resize.


Is this possible? How might I implement this?

Link to comment
Share on other sites

If lockScale is true, the scale cursor won't show up and there isn't a simple edit to change that. You'd need to alter the source code for that (feel free to do so).

Link to comment
Share on other sites

Well, if I leave lockScale false (default), can I instead intercept the onScale command and prevent it from continuing?

Link to comment
Share on other sites

You're welcome to add conditional logic to the onPressScale(), onPressStretchH(), and/or onPressStretchV() methods, sure.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.