Hi Craig. No what I am doing is when suspendStack fires, I check a property in
the current stack. If it is not "view" I pop a dialog (as sheet) alerting the
user thet they have unsaved changes, then I go to the stack (otherwise it will
navigate away which is what I am trying to prevent).
I'm t
Hi.
"...For instance, I can click the window of the mainstack while in a
substack and I get the suspendStack message. Subsequent clicks however do
NOT get sent."
Now I am not sure what you mean. If I have a mainstack with a suspendStack
handler in the stack script, and one or more sub stacks, tha
I put the suspendStack handler in the card instead. Same thing. Seems the
suspendStack message is only getting sent once for every different stack I
switch to. For instance, I can click the window of the mainstack while in a
substack and I get the suspendStack message. Subsequent clicks however
I just set up a couple stacks and it worked every time. Then I switched to
another application and then the messages stopped. I will need to go back and
see if I can reduce to a recipe.
The dictionary says the message is sent to the card, so the stack should see it.
Thanks,
Brian
On Sep 20, 201
Hmmm.
Not sure of your setup, of course, but if I try an experiment, it always
works. Can you check the topStack each time you return to the, er, topStack?
You may indeed need to place that handler in a backScript or stack in use in
order to do so.
Craig
--
Sent from:
http://runtime-revolutio
Yes it's in the stack script. It works the first time, and subsequent times it
does not fire, even when I click back on the stack and away from it again. I
think the stack I clicked on to go away from it is somehow getting the
suspendStack message instead of the stack that is *actually* suspendi
Bob.
Is the suspendStack handler in the stack script of some stack? If so, it
will only fire when leaving that stack.
You can always place the handler in a backScript, or something similar, so
that all stacks will have to listen to it.
Craig
--
Sent from:
http://runtime-revolution.278305.n4.
I'm still curious why suspendStack is not getting sent to what appears for all
intents and purposes to be the topStack (I even click the titlebar to make
sure), but I found a workaround which is a bit more elegant. If I have a
substack open, say for editing the details of a site record, and I am
Hi all.
I was using modal as a means to prevent a user from switching to another open
window while in certain modes (editing a "form" for example). That is fraught
with peril for a number of reasons I will not go into here.
So alternatively I thought to put a suspendStack handler in the stack