On 01/25/2018 03:31 PM, Bob Sneidar via use-livecode wrote:
Trouble is I DO want to open the login stack modally in development, because it 
pulls setup information for each user from the Login database, such as custom 
settings (like local file paths, recent customers list, access level etc). The 
only time I do NOT want to open that stack is when I am saving as standalone.

It's not killing me to set the stack mode to top level each time, it's just 
irritating.

Heretical idea:

Put a 'Cancel' button on the modal stack.
If it's clicked, toplevel the stack and move on.
Only make the button visible if in development mode.

on preOpenStack
  if the environment is "development" then
    show button 'btnCancel'
  else
    hide button 'btnCancel'
  end if
end preOpenStack

-- in the button itself
on mouseUp
  toplevel this stack
end mouseUp

--
 Mark Wieder
 ahsoftw...@gmail.com

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

Reply via email to