answer better

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Samuele
Posts: 282
Joined: Mon Oct 11, 2021 7:05 pm
Location: Italy

answer better

Post by Samuele » Mon Nov 29, 2021 1:25 pm

hi, is there a better looking way to answer "something" ?
thanks
Samuele.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9388
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: answer better

Post by richmond62 » Mon Nov 29, 2021 3:27 pm

Can you explain things a bit more, please?

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9669
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: answer better

Post by dunbarx » 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

Samuele
Posts: 282
Joined: Mon Oct 11, 2021 7:05 pm
Location: Italy

Re: answer better

Post by Samuele » Mon Nov 29, 2021 5:25 pm

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:
Samuele.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9669
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: answer better

Post by dunbarx » Mon Nov 29, 2021 6:09 pm

Hmmm.
what?
Exactly, "what"?.

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

Craig

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: answer better

Post by jmburnod » Mon Nov 29, 2021 6:19 pm

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
https://alternatic.ch

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9669
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: answer better

Post by dunbarx » Mon Nov 29, 2021 6:45 pm

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

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9388
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: answer better

Post by richmond62 » Mon Nov 29, 2021 9:37 pm

I tend to favour a group of images:
-
ANSWER.jpg

Samuele
Posts: 282
Joined: Mon Oct 11, 2021 7:05 pm
Location: Italy

Re: answer better

Post by Samuele » Mon Nov 29, 2021 9:39 pm

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!
Samuele.

Samuele
Posts: 282
Joined: Mon Oct 11, 2021 7:05 pm
Location: Italy

Re: answer better

Post by Samuele » Mon Nov 29, 2021 9:41 pm

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?
Samuele.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9669
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: answer better

Post by dunbarx » Mon Nov 29, 2021 10:07 pm

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

Newbie4
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 327
Joined: Sun Apr 15, 2012 1:17 am
Location: USA
Contact:

Re: answer better

Post by Newbie4 » Mon Nov 29, 2021 11:45 pm

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...
Cyril Pruszko
https://sites.google.com/a/pgcps.org/livecode/
https://sites.google.com/a/setonhs.org/app-and-game-workshop/home
https://learntolivecode.com/

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7237
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: answer better

Post by jacque » 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.

Substacks do work well on mobile if they are used as the single visible stack, like in the splash stack method.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9840
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: answer better

Post by FourthWorld » Tue Nov 30, 2021 5:50 pm

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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7237
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: answer better

Post by jacque » Tue Nov 30, 2021 6:18 pm

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.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”