Is hiding a modal dialog the same as closing it?

Mark Schonewille m.schonewille at economy-x-talk.com
Sun Dec 1 07:14:05 EST 2013


Hi Graham,

What odd behaviour do you see?

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Use Color Converter to convert CMYK, RGB, RAL, XYZ, H.Lab and other 
colour spaces. http://www.color-converter.com

Buy my new book "Programming LiveCode for the Real Beginner" 
http://qery.us/3fi

Fill out this survey please
http://livecodebeginner.economy-x-talk.com/survey/

On 12/1/2013 13:10, Graham Samuel wrote:
> In a desktop app, I have a little color palette that opens as modal, and is dismissed with an 'OK' or 'Cancel' button in the usual way after the user had picked a color and the color is placed in a global (yes, I know, it could have been a custom property). This works in general, but I'm having some trouble with the initial opening, where unexpected things happen, possibly with the defaultStack setting.
>
> Anyway it's some time since I scripted this, and I just noticed that I don't close this stack when someone clicks 'OK", I just hide it. The effect is that the stack is dismissed, and control returns to the handler that's waiting for the setting of the global, and the program sequence continues. Is hiding really the same as closing the stack? This doesn't seem to be documented anywhere.
>
> Has anyone any tips on this stuff? I am getting some very odd behaviour when I first open the modal, but no problems after that. There is a rather odd note by Oliver in the LC dictionary about messages that might be sent when a modal is opened, but it doesn't give a complete account of all the messages sent etc.
>
> TIA
>
> Graham





More information about the Use-livecode mailing list