I've got a Main stack sized something like 600 x 600. I have created a substack called myForm which is approximately 350x350 which I want popping up as a modal dialog. Ive figured out how to do this with little scripting, however to take this further I would like the modal box appear in the centre of the stack that called it. Is there an easy LiveCode way to achieve this, or do I need to pass over the location, height and Width to a handler in myForm and then using on opencard try and centre the modal box using location?
Code: Select all
on opencard
modal stack "myForm"
end opencard
open card