How to create a modal card?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Posts: 90
- Joined: Sun Feb 15, 2015 2:51 pm
How to create a modal card?
Hello,
is it possible to create a modal card that opens from the menu bar, such as those that os x uses to get licenses accepted?
I would like to use it to insert data into two appropriately positioned fields.
Thank you
is it possible to create a modal card that opens from the menu bar, such as those that os x uses to get licenses accepted?
I would like to use it to insert data into two appropriately positioned fields.
Thank you
Re: How to create a modal card?
Buonasera Alessio,
a card can not be "modal" but the stack that contains it. So create a little stack with everything you need in it, and don't forget a button to close this later MODAL stack!, and just open it like:
Is that what you mean?
Best
Klaus
a card can not be "modal" but the stack that contains it. So create a little stack with everything you need in it, and don't forget a button to close this later MODAL stack!, and just open it like:
Code: Select all
...
modal "your stack here..."
...
Best
Klaus
-
- VIP Livecode Opensource Backer
- Posts: 7238
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: How to create a modal card?
I think he means the "sheet" command.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: How to create a modal card?
*Cross-platform note:* Sheets are only used on OS X|OS X systems. If you use the sheet command on a Mac OS, Unix, or Windows system, the stack is displayed as a modal dialog box and the parentStack parameter is ignored.
-
- Posts: 90
- Joined: Sun Feb 15, 2015 2:51 pm
-
- VIP Livecode Opensource Backer
- Posts: 9842
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: How to create a modal card?
Thanks for posting that, Clint. It's close, but misses a useful nuance about the sheet command worth noting - I've submitted an enhancement request for a clearer description:
https://quality.livecode.com/show_bug.cgi?id=21664
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn