Wait until group is hidden

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
anonimus
Posts: 1
Joined: Fri Apr 03, 2020 2:23 am

Wait until group is hidden

Post by anonimus » Fri Apr 03, 2020 2:36 am

Hi there, I'm new at livecode and I have a question
I have made a 2 players game and a code that detects if they had chosen the same name (it might break the game) and answers them with a personalized answer box (is just a group of fields). So i was wondering if there was any way to make the code wait until the answer box is hidden.
Thanks and sorry for the bad english

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

Re: Wait until group is hidden

Post by richmond62 » Fri Apr 03, 2020 8:46 am

Code: Select all

wait 3 seconds

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Wait until group is hidden

Post by Klaus » Fri Apr 03, 2020 1:20 pm

Hi anonimus,

welcome to the forum!

Since the ASK and ANSWER dialogs are MODAL, this will happen automatically!

Code: Select all

...
dothis
dothat
answer "Hi there!"
donanotherthing
...
You will see the dialog and the next handler -> doanotherthing will only be executed AFTER
the user has clicked OK in the Answer dialog! :D
If that is what you mean.


Best

Klaus

Post Reply

Return to “Talking LiveCode”