Hi David,

> Am 03.06.2019 um 00:00 schrieb David Epstein via use-livecode 
> <[email protected]>:
> 
> Is there some simple way that an openCard handler can branch based on what 
> card it is coming from?

checl "recentNames" in the dictionary, that may be what you are looking for.

> When a user goes to a different card in a stack, or to a different stack, I 
> use an “openCard” handler to set things up.

Yep.

> But I do not want those actions taken if the user is merely “returning” to a 
> card after using a palette tool, or after a palette tool has been opened.

Then the card will receive a "resumestack" (and "suspendstack"), but no 
"opencard" message.

> I’m not sure I understand the full range of events that “close” a card so 
> that returning to it triggers “openCard.”  Does this happen if I set an 
> insertion point or select text in an unlocked field in a palette, or the user 
> types there?  Does it happen if I open a palette, or move a palette, or if 
> the user clicks on the palette?

See above, resumestack/suspendstack are the messages you could check, if 
neccessary, in that case.

> Many thanks.
> 
> David Epstein

Best

Klaus

--
Klaus Major
http://www.major-k.de
[email protected]


_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to