Page 1 of 2

answer better

Posted: Mon Nov 29, 2021 1:25 pm
by Samuele
hi, is there a better looking way to answer "something" ?
thanks

Re: answer better

Posted: Mon Nov 29, 2021 3:27 pm
by richmond62
Can you explain things a bit more, please?

Re: answer better

Posted: Mon Nov 29, 2021 3:43 pm
by dunbarx
Hi.

Do you mean apart from the standard and not so lovely "Answer" dialog?

If yes, then the, er, answer is also "yes".

Yes?

Craig

Re: answer better

Posted: Mon Nov 29, 2021 5:25 pm
by Samuele
dunbarx wrote:
Mon Nov 29, 2021 3:43 pm
Hi.

Do you mean apart from the standard and not so lovely "Answer" dialog?

If yes, then the, er, answer is also "yes".

Yes?

Craig
what? :lol:

Re: answer better

Posted: Mon Nov 29, 2021 6:09 pm
by dunbarx
Hmmm.
what?
Exactly, "what"?.

What are you asking for? A prettier or more functional answer dialog?

Craig

Re: answer better

Posted: Mon Nov 29, 2021 6:19 pm
by jmburnod
Hi,
When i need a special answer dialog i use a group, but it is more work than use answer dialog.
As Craig said what is your need ?
Best regards
Jean-Marc

Re: answer better

Posted: Mon Nov 29, 2021 6:45 pm
by dunbarx
Jean-Marc is a fan of groups. There is a good reason for that.

I am a fan of subStacks. There is a good reason for that.

But without some sort of feedback, we are unable to advise...

Craig

Re: answer better

Posted: Mon Nov 29, 2021 9:37 pm
by richmond62
I tend to favour a group of images:
-
ANSWER.jpg

Re: answer better

Posted: Mon Nov 29, 2021 9:39 pm
by Samuele
yeah sorry, i meant that i don't like the appearance of the answer dialog (aesthetically) -because it's black and gray -in a rectangular shape and so on...
sorry I was not clear.
thanks!

Re: answer better

Posted: Mon Nov 29, 2021 9:41 pm
by Samuele
richmond62 wrote:
Mon Nov 29, 2021 9:37 pm
I tend to favour a group of images:
-
ANSWER.jpg
ah wow! that's actually good!! how'd you do it?

Re: answer better

Posted: Mon Nov 29, 2021 10:07 pm
by dunbarx
ah wow! that's actually good!! how'd you do it?
Richmond is famous for graphic gadgetry.

The standard answer (and "ask") dialogs are modal dialogs. They float above all others, are blocking, and must be dismissed before anything else can proceed. For me, I do not care about the looks of those dialogs, but sometimes want extra controls or options. In that case I create a substack that has the same properties of a modal dialog, but built to my taste, and simply navigate there.

How you do it is up to you. You just ought to know the various ways you can build it.

Craig

Re: answer better

Posted: Mon Nov 29, 2021 11:45 pm
by Newbie4
Samuele
It is easy.
1. Create a substack - File>New SubStack of .... (New SubStack of Main)
2. Name it (e.g. "save") and add a button to close it with the following code:

Code: Select all

on mouseUp
...
go to stack "main"
close stack "save"
On your "main" stack where you want to invoke it, put the following code:

Code: Select all

on mouseUp
   modal stack "save"
end mouseUp
for more explanation, look up the "modal" command in the LiveCode Dictionary
for illustrations, look at the code at https://sites.google.com/a/pgcps.org/li ... s_palettes

Hope this makes it clearer to you...

Re: answer better

Posted: Tue Nov 30, 2021 4:44 pm
by jacque
Samuel is building for mobile and an answer dialog created as a substack won't work there since there can only be a single window at a time. It would appear as a full screen card and the working substack would be suspended. A group is the only way to go if you want an overlay.

Substacks do work well on mobile if they are used as the single visible stack, like in the splash stack method.

Re: answer better

Posted: Tue Nov 30, 2021 5:50 pm
by FourthWorld
jacque wrote:
Tue Nov 30, 2021 4:44 pm
Samuel is building for mobile and an answer dialog created as a substack won't work there since there can only be a single window at a time. It would appear as a full screen card and the working substack would be suspended. A group is the only way to go if you want an overlay.
Overly dialogs would seem a good high priority for the engine team.

Re: answer better

Posted: Tue Nov 30, 2021 6:18 pm
by jacque
Overly dialogs would seem a good high priority for the engine team.
They've implemented the main ones that are allowed. It's more to do with various mobile platform restrictions. For example, you can show a popover or a picker on iOS but Android doesn't have that. Instead you get a full screen window with some radio buttons, which is the native display. It's ugly too.

If you mean something else, groups work well already so I doubt an overlay would be a high priority, though I'd love it if it was.