SCRIPTS IN GROUPS

Jon jbondy at sover.net
Sat Aug 6 09:02:30 EDT 2005


Is it really true that a Group that is not in the Background takes up 
(i.e., accepts mouse events from) the whole card?!?

:)

Jon


Bill wrote:

>Thanks. It sure helps. I feel like a loser, sort of, but more and more I am
>avoiding groups because they confuse me. I should have realized what
>"setting the background behavior to true" would do. I have to think of a
>group as always taking up the whole area of the card and not just the
>bounded area that it appears to take up.
>
>
>On 8/6/05 8:37 AM, "Klaus Major" <klaus at major-k.de> wrote:
>
>  
>
>>Hi Bill,
>>
>>    
>>
>>>How come if you have a script in a group, and that group is the
>>>same size as
>>>a button, the "mouse-up" handler in the group responds when you click
>>>anywhere in the card and not just directly over the group?
>>>      
>>>
>>if the "backgroundbehavior" of that group = true, then this is the
>>correct behavior!
>>
>>That script is put into the message path AFTER the card:
>>
>>object -> (group with NO bg behav.) -> card -> BG (= group WITH bg
>>behav.) -> stack...
>>
>>I alsways check "the owner of the target" in these cases in the bg
>>script.
>>
>>on mouseup
>>     if the owner of the target = me then
>>      ## an object INSIDE that group was clicked
>>     end if
>>end mouseup
>>
>>Hope that helps.
>>
>>
>>
>>Regards
>>
>>Klaus Major
>>klaus at major-k.de
>>http://www.major-k.de
>>
>>_______________________________________________
>>use-revolution mailing list
>>use-revolution at lists.runrev.com
>>Please visit this url to subscribe, unsubscribe and manage your subscription
>>preferences:
>>http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>>
>>    
>>
>
>            |    |    |
>           )_)  )_)  )_)
>          )___))___))___)\
>         )____)____)_____)\\
>       _____|____|____|____\\\__
>-------\                   /--------- http://www.bluewatermaritime.com
> ^^^^^ ^^^^^^^^^^^^^^^^^^^^^
>  ^^^^      ^^^^     ^^^    ^^
>       ^^^^      ^^^
>
>24 hour cell: (787) 378-6190
>fax: (787) 809-8426
>
>Blue Water Maritime
>P.O. Box 91
>Puerto Real, PR 00740
>
>
>
>_______________________________________________
>use-revolution mailing list
>use-revolution at lists.runrev.com
>Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
>http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
>  
>



More information about the use-livecode mailing list