Can An Object Know About Itself?
Scott Rossi
scott at tactilemedia.com
Fri Mar 2 03:14:25 EST 2012
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 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 more commands
> available, namely preOpenControl, openControl, closeControl and resizeControl.
>
> Not sure if it would help, but it sounds like the closeControl may be useful
> to you, I would need to scan the video again to be sure and I am about to go
> out, but I'll certainly have a look when I get back.
>
> Paul
>
>
> On 2 Mar 2012, at 06: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
>>
>>
>>
>> _______________________________________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription
>> preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list