Can An Object Know About Itself?

Mark Schonewille m.schonewille at economy-x-talk.com
Fri Mar 2 07:59:50 EST 2012


Hi,

Make the group a background. That should allow it to catch the selectedObjectChanged message.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za

On 2 mrt 2012, at 07:48, Scott Rossi wrote:

> Is there any way for an object to know when it is unselected using only
> scripts within the object itself?
> 
> The selectedObjectChanged is sent to an object when it is selected, but when
> the object is deselected, the object will only get the selectedObjectChanged
> message if the selection is changed to nothing.  Is there some way for the
> object to know it is no longer selected without resorting to an external
> script? (no front, back, card or stack).
> 
> I have a group of objects that needs to reorganize itself when it is
> deselected, but I'd like to avoid using external scripts to do this so the
> object is easily portable.
> 
> Thanks for any suggestions.
> 
> Regards,
> 
> Scott Rossi
> Creative Director
> Tactile Media, UX Design





More information about the use-livecode mailing list