a card answering to a mouseUp of the script of one of its groups!!!
andre.bisseret at wanadoo.fr
Mon Oct 11 13:11:13 CDT 2010
Thanks a lot Dar for your prompt reply.
Le 11 oct. 10 à 18:13, Dar Scott a écrit :
> A group with backgroundBehavior set to true shows up in the message
> path behind the card. By "behind" I mean, the script is searched
> for matching handlers right after the card is searched and nothing
> is found.
Ouups! You are right! I should have pay attention to this fact.
> Perhaps you can check that the name of the target is among those
> expected and pass mouseUp (or ignore it) if it is not.
Not easy for the fields that are grouped, as they are created by the
user so that I can't easily foresee their number and their names (I
could add a same prefix or suffix to their names,…
I will see. That makes me think that I could check that the name of
the target is not among the card' names (there are only 13 cards, one
for each months and one for the year)
In any case, thank you much for your idea.
> On Oct 11, 2010, at 9:50 AM, André Bisseret wrote:
>> On the cards of a stack I have a group of fields (with
>> backgroundBehavior set to true).
>> Clicking on a line of any field of the group, open a substack
>> (among others stuff)
>> For that I have a mouseUp handler in the script of the group
>> (refering to the target to get the name of the field).
>> Worked normally up to now.
>> But this morning, the mouseUp handler is triggered, not only when
>> clicking on a field of the group, but also when clicking anywhere
>> on the card!!!! (in this case, If I ask for the target, I get the
>> name of the card !!)
>> First time I get that; the only way I found to avoid that was to
>> trap the mouseUp message in the script of the card!!
>> Not possible to keep such a trick!
>> Any idea on what I could have done wrong?
>> Thanks a lot in advance for any help
>> Best regards from Grenoble
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> Orange vous informe que cet e-mail a ete controle par l'anti-virus
> Aucun virus connu a ce jour par nos services n'a ete detecte.
More information about the use-livecode