Re: Can An Object Know About Itself?

2012-03-02 Thread Scott Rossi
Good idea Paul, but unfortunately, at least according to the docs, closeControl is only sent when leaving a card. Regards, Scott Rossi Creative Director Tactile Media, UX Design Recently, Paul Hibbert wrote: Scott, I re-watched a seminar from the 09 RevLive by Trevor DeVore recently

Re: Can An Object Know About Itself?

2012-03-02 Thread Phil Davis
Scott, 'the selectedObjects' function returns a list of all objects selected at a given time. I suppose an object could poll it (send in time) and do an action when it finds it's long ID is no longer listed. That's probably the hard way, but food for thought. Phil Davis On 3/1/12 10:48

Re: Can An Object Know About Itself?

2012-03-02 Thread Mark Schonewille
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

Re: Can An Object Know About Itself?

2012-03-02 Thread Mike Bonner
Another thought, use a frontscript. As a test I created a group with several objects including 1 button to use as frontscript. For the group, this: on selectedobjectchanged if the long id of button fscriptb of me is not among the lines of the frontscripts then insert script of button

Re: Can An Object Know About Itself?

2012-03-02 Thread Mike Bonner
Oops, of course remove the put the oldselected of this stack line from the inserted button script. On Fri, Mar 2, 2012 at 6:17 AM, Mike Bonner bonnm...@gmail.com wrote: Another thought, use a frontscript. As a test I created a group with several objects including 1 button to use as

Can An Object Know About Itself?

2012-03-01 Thread Scott Rossi
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

Re: Can An Object Know About Itself?

2012-03-01 Thread Paul Hibbert
Scott, I re-watched a seminar from the 09 RevLive by Trevor DeVore recently about behaviours and one thing he pointed out was that a behaviour acts like a back script for a control, but if I understood him correctly, he also mentioned that when behaviours are applied to controls, there are