Answer Dialogue Box

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

Post Reply
ferhan24badshah
Posts: 35
Joined: Sun Feb 02, 2014 12:20 am

Answer Dialogue Box

Post by ferhan24badshah » Sun Feb 02, 2014 12:29 am

I have 3 options to choose from my answer dialogue box.
1. Play (plays audio)
2. Exit (exits out answer dialogue box)
3. Stop (pauses audio)

how do I prevent the answer dialogue box from exiting out after clicking options 1 and 2?

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Answer Dialogue Box

Post by Klaus » Sun Feb 02, 2014 12:50 am

Hi Ferhan,

1. welcome to the forum! :D

2. The solution is easy, do not use an "Answer" dialog!
That is built-in behavior that it close after a click on ANY button!

Create a new stack (make it a substack of your mainstack) add your three buttons to it with
the appropriate script(s) and open that stack as "modal":
...
modal "name of your custom dialog here..."
...
IMPORTANT!
Be sure that you ahve at least ONE button in a MODAL stack that closes the stack! 8)

Maybe you want to take a look at these stacks, great learning resource for the basics of Livecode:
http://www.hyperactivesw.com/revscriptc ... ences.html


Best

Klaus

Post Reply