Ask interface with pulldown
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Posts: 90
- Joined: Sun Feb 15, 2015 2:51 pm
Ask interface with pulldown
Hello everyone,
I was wondering if there is a way to have an ask interface with a pulldown menu, so as to provide a choice between predefined answers, or if you have to create it yourself.
Thank you
I was wondering if there is a way to have an ask interface with a pulldown menu, so as to provide a choice between predefined answers, or if you have to create it yourself.
Thank you
Re: Ask interface with pulldown
Buongiorno Alessio,
not build-in, but the ASK and ANSWER dialogs are just MODAL stacks, so roll your own!
Also check "dialogdata" in the dictionary.
Best
Klaus
not build-in, but the ASK and ANSWER dialogs are just MODAL stacks, so roll your own!
Also check "dialogdata" in the dictionary.
Best
Klaus
-
- Posts: 90
- Joined: Sun Feb 15, 2015 2:51 pm
Re: Ask interface with pulldown
Tanks Klaus
-
- VIP Livecode Opensource Backer
- Posts: 9663
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Ask interface with pulldown
Hi.
What Klaus said.
It is common practice, especially with, say, order entry forms or the like, to create a small stack that can be opened and closed as needed. The nice thing about them is that you can have buttons, fields, images, whatever, on the card, and customize to your needs. And you can modify them later.
The ask and answer dialogs have very limited functionality. Their advantage is they are "native" and very easy to use.
But as Klaus said, there is really no difference between them, it is just that you have to author your own. But you only need do that once.
Craig Newman
What Klaus said.
It is common practice, especially with, say, order entry forms or the like, to create a small stack that can be opened and closed as needed. The nice thing about them is that you can have buttons, fields, images, whatever, on the card, and customize to your needs. And you can modify them later.
The ask and answer dialogs have very limited functionality. Their advantage is they are "native" and very easy to use.
But as Klaus said, there is really no difference between them, it is just that you have to author your own. But you only need do that once.
Craig Newman
-
- VIP Livecode Opensource Backer
- Posts: 2718
- Joined: Sat Dec 22, 2007 5:35 pm
- Location: Genève
- Contact:
Re: Ask interface with pulldown
Hi All,
Sometimes i use a group to simulate a complex ask/answer dialog.
Best
Jean-Marc
Sometimes i use a group to simulate a complex ask/answer dialog.
Best
Jean-Marc
https://alternatic.ch
-
- Posts: 90
- Joined: Sun Feb 15, 2015 2:51 pm
-
- VIP Livecode Opensource Backer
- Posts: 9663
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Ask interface with pulldown
Whether or not you use a group, the point is that you are using another actual stack that will float over your working stack. On that stack you can place anything at all. You call it just like the native ask/answer dialogs, and dismiss it when you are done.
There is a wrinkle. A native "answer" dialog, say, places the choice you make into the "it" variable, which you then process right inside the stack you used to call it. But in the fancy stack, you must explicitly send the new information to the working stack.
Otherwise, there is no difference at all.
Craig
There is a wrinkle. A native "answer" dialog, say, places the choice you make into the "it" variable, which you then process right inside the stack you used to call it. But in the fancy stack, you must explicitly send the new information to the working stack.
Otherwise, there is no difference at all.
Craig
-
- VIP Livecode Opensource Backer
- Posts: 2718
- Joined: Sat Dec 22, 2007 5:35 pm
- Location: Genève
- Contact:
Re: Ask interface with pulldown
Hi Alessio
What Craig said
The user must select a choice and he can't click a control outside the dialog is the particularity of a dialog as ask/answer.
You can simulate this with a grc with a 50 blendlevel which trap mousemessages.
Best
Jean-Marc
What Craig said
The user must select a choice and he can't click a control outside the dialog is the particularity of a dialog as ask/answer.
You can simulate this with a grc with a 50 blendlevel which trap mousemessages.
Best
Jean-Marc
https://alternatic.ch
-
- VIP Livecode Opensource Backer
- Posts: 2718
- Joined: Sat Dec 22, 2007 5:35 pm
- Location: Genève
- Contact:
Re: Ask interface with pulldown
Hi Alessio
Jean-Marc
Here is one. Best regardsInteresting, can you give me an example?
Jean-Marc
https://alternatic.ch
-
- VIP Livecode Opensource Backer
- Posts: 2718
- Joined: Sat Dec 22, 2007 5:35 pm
- Location: Genève
- Contact:
Re: Ask interface with pulldown
Craig said,
I think that is easier to simulate dialog with a group than use a custom stack.
Jean-Marc
Yes for code, but I found one difference for an ios version which is limited to one window.Otherwise, there is no difference at all
I think that is easier to simulate dialog with a group than use a custom stack.
Jean-Marc
https://alternatic.ch