Re: Image Cropping Tool for Livecode

2011-12-05 Thread Richard Gaskin
Jacque wrote: On 12/4/11 8:09 PM, Sivakatirswami wrote: As anyone created a image cropping tool for LiveCode? If you hold down the command key while resizing an image, it gets cropped to the new size. There's no warning, it just happens. That's a frightening way to have users accidentally

Re: Image Cropping Tool for Livecode

2011-12-05 Thread Mark Schonewille
Hi Richard, I never accidentally lost my data that way. Did you? -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter: http://twitter.com/xtalkprogrammer KvK: 50277553 Become our partner in sales http://qery.us/1bq

Re: Image Cropping Tool for Livecode

2011-12-05 Thread Richard Gaskin
Mark Schonewille wrote: On 5 dec 2011, at 14:51, Richard Gaskin wrote: That's a frightening way to have users accidentally lose data. Is there a property to turn that off, or can we trap for commandKeyDown on mouseDown to override it? Hi Richard, I never accidentally lost my data that

Re: Image Cropping Tool for Livecode

2011-12-05 Thread Björnke von Gierke
uhm... don't enable the pointer tool? set the resizability to false? set the editable to false? Seriously, if you have a image editing app, then you might want to use a cached version of the image anyway, because of rotation and similar ways to lose image quality. This is such a non issue for

Re: Image Cropping Tool for Livecode

2011-12-05 Thread Mark Schonewille
Richard, I see no reason to turn this feature off. I never give the users of my software access to the pointer tool, which means that can never lose data this way. Personally, I really appreciate this feature because it is a very easy way to crop images: no need to edit them in an external

Re: Image Cropping Tool for Livecode

2011-12-05 Thread Richard Gaskin
Mark Schonewille wrote: On 5 dec 2011, at 15:55, Richard Gaskin wrote: LOL. I haven't had such reports yet, but when delivering robust systems we don't ship things with the potential for losing data in the hope that the user simply won't perform the action that would cause such loss, but

Re: Image Cropping Tool for Livecode

2011-12-05 Thread Mark Schonewille
Richard, You can set the cantSelect of objects to true. That should solve it in most cases, unless... you have a picture that needs to be selectable :-) -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Software Engineering Homepage: http://economy-x-talk.com Twitter:

Re: Image Cropping Tool for Livecode

2011-12-05 Thread J. Landman Gay
On 12/5/11 7:51 AM, Richard Gaskin wrote: Jacque wrote: On 12/4/11 8:09 PM, Sivakatirswami wrote: As anyone created a image cropping tool for LiveCode? If you hold down the command key while resizing an image, it gets cropped to the new size. There's no warning, it just happens. That's a

Re: Image Cropping Tool for Livecode

2011-12-05 Thread Richard Gaskin
Mark Schonewille wrote: On 5 dec 2011, at 16:53, Richard Gaskin wrote: Agreed. Please note that I didn't make a feature request, just wondering if one can trap existing messages/properties to prevent this undocumented behavior. You can set the cantSelect of objects to true. That should

Re: Image Cropping Tool for Livecode

2011-12-05 Thread Richard Gaskin
Jacque - I suppose you could trap mousemove and check if the command key is down and tool is the pointer tool to avoid the problem. Good suggestion. Thanks. -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers:

Re: [OT}] Hypercard and an uneasy read.

2011-12-05 Thread Bob Sneidar
I think the reason is because he wanted to be able to reverse the decision, if at any point Apple wanted to resurrect the product in the future. Most software companies that go under do not open source their stuff, if for no other reason than to say to the public who didn't want to pay for it,

Re: Image Cropping Tool for Livecode

2011-12-05 Thread Chipp Walters
I think the issue isn't really whether or not someone will accidently use a feature, but more along the lines of having the engine assume behaviors we don't know of, or can't override in some way or another. My friend and fellow LC'er, Jerry Daniels, is now working in RB. He needs to as it has an

Re: setProp and Lock messages

2011-12-05 Thread Pete
Hi Richard, You're right the reference manual does say that. And on the very next page, it says: If you use the set command within a setprop handler to set the custom property for the current object, no setProp trigger is sent to the target object. (This is to avoid runaway recursion, where the

Re: setProp and Lock messages

2011-12-05 Thread Richard Gaskin
Pete wrote: On Sun, Dec 4, 2011 at 12:10 PM, Richard Gaskin wrote: Here's what the docs say with regard to recursion for setProp: Caution! If a setProp handler in one object's script sets the custom property for a different object, and the first object is in the second object's

Re: [OT}] Hypercard and an uneasy read.

2011-12-05 Thread Ken Corey
I had a little company that went bust due to lack of funds. When that happens, the assets of the business must be sold off to pay the creditors (we owed national insurance, PAYE tax, hosting services, salaries, etc). In hopes of trying to raise cash to pay off those debts, the solicitor

Re: setProp and Lock messages

2011-12-05 Thread Pete
No I don't think you're missing anything - I am :-) I'm sure what you said is correct although I haven't tried it. The example in the manual regarding the use of lockMessages seems to relate to a setProp handler at the stack level to handle a custom property used by all cards in the stack. My

Re: Image Cropping Tool for Livecode

2011-12-05 Thread Alejandro Tejada
Hi All, Reading about masking and cropping images, How both actions differs from importing an snapshot of an area? Thanks in advance! Al -- View this message in context: http://runtime-revolution.278305.n4.nabble.com/Image-Cropping-Tool-for-Livecode-tp4158971p4161689.html Sent from the