Before handlers

Scott Rossi scott at tactilemedia.com
Mon Jan 6 14:08:51 EST 2014


"Before" is in the dictionary under "before" and type "control structure":

"The before handler is exclusive to behavior scripts and is sent to a
behavior script before all messages."  Message path is explained too.

Regards,

Scott Rossi
Creative Director
Tactile Media, UX/UI Design




On 1/6/14 10:27 AM, "Peter Haworth" <pete at lcsql.com> wrote:

>Folks,
>Where are you finding info on this in the dictionary?  I looked in the
>6.5.1 dictionary under the before, behavior, and mouseUp entries and none
>of them mention anything about this type of structure. Not doubting what's
>being said, would just like to see it in the dictionary.
>
>I came across the front script issue in a pretty specialised situation.  I
>wanted to add a line to one of the IDE popup menus and thought I would be
>able to do it with an after mouseDown in a front script.  I guess I could
>set a behavior on the IDE menu button so all is not lost.
>
>Pete
>lcSQL Software <http://www.lcsql.com>
>
>
>On Mon, Jan 6, 2014 at 9:26 AM, Paul Hibbert <paulhibbert at mac.com> wrote:
>
>> It's simple to test and you're correct, it will check, but if there is a
>> mouseDown Handler in the object script, that will over-ride the
>>mouseDown
>> Handler in the behavior script, so maybe step 2 in the dictionary should
>> read:
>>
>> 2. The engine next looks at the object script - If an on mouseDown
>>handler
>> is present, then it executes it
>>         else, the engine looks at the behavior script - If an on
>>mouseDown
>> handler is present, it executes it.
>>
>> Paul
>>
>> On 2014-01-06, at 6:52 AM, Dr. Hawkins <dochawk at gmail.com> wrote:
>>
>> > On Sun, Jan 5, 2014 at 8:00 PM, <dunbarx at aol.com> wrote:
>> >
>> >> 2. The engine next looks at the object script - If an on mouseDown
>> handler
>> >> is present, it executes it.
>> >>
>> >
>> > Wait a minute, shouldn't it also be checking the behavior script for a
>> > mouseDown handler?
>> >
>> >
>> > --
>> > Dr. Richard E. Hawkins, Esq.
>> > (702) 508-8462
>> > _______________________________________________
>> > 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
>>
>_______________________________________________
>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