Create an "answer" pop-up without the "ok" button?

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
Cheong
Posts: 30
Joined: Tue Oct 27, 2015 7:49 am

Create an "answer" pop-up without the "ok" button?

Post by Cheong » Mon Nov 16, 2015 2:36 am

Hi readers,

The default answer pop-up have the "ok" button to let user to close the answer pop-up. What if I want to make the pop-up just a plain text showing up, which not allowing user to close it but it will automatically be closed?

Any idea?

Thanks.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: Create an "answer" pop-up without the "ok" button?

Post by dunbarx » Mon Nov 16, 2015 4:05 am

You need to roll your own. This would be a small button or field (or even a substack) that shows itself, times out and hides. Can you do this?

Craig Newman

quailcreek
Posts: 746
Joined: Sun Feb 04, 2007 11:01 pm

Re: Create an "answer" pop-up without the "ok" button?

Post by quailcreek » Mon Nov 16, 2015 4:05 am

You will probably need to do this with a group. You can show the group then hide it with a time script. Something like...

Code: Select all

on mouseUp
   show grp "MyGroup"
   wait 3 secs 
   hide grp "MyGroup"
end mouseUp
Tom
MacBook Pro OS Mojave 10.14

Post Reply