Custom answer / ask function

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
carel
Posts: 58
Joined: Mon Jul 29, 2013 2:49 pm

Custom answer / ask function

Post by carel » Mon Jan 06, 2014 6:21 pm

I would like to have a custom answer / ask / ask password function, that pops up, for example a picture with a speech bubble with the text inside, but while staying on the current card - It should just float on top.

Can anyone push me in the right directions?

Thanks,

Carel

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

Re: Custom answer / ask function

Post by Klaus » Mon Jan 06, 2014 6:25 pm

Hi Carel,

if you need it to "stay" on the card = no extra window like the build-in dialogs,
I would create a group, that you can show/hide as neccessary.
Know what I mean?


Best

Klaus

carel
Posts: 58
Joined: Mon Jul 29, 2013 2:49 pm

Re: Custom answer / ask function

Post by carel » Mon Jan 06, 2014 7:11 pm

Hi Klaus,

I was thinking of something that I could call from any card for example:

myAnswer "bla bla bla"

Thanks,

Carel

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

Re: Custom answer / ask function

Post by Klaus » Mon Jan 06, 2014 7:16 pm

Hi Carel,

i thought you did not want an extra window? 8)

Well, then you can create a stack and open it MODAL,
of course you need to script a bit top make:
myanswer "bla bla bla"
work :D

Check "modal" and "dialogdata" in the dictionary.


Best

Klaus

carel
Posts: 58
Joined: Mon Jul 29, 2013 2:49 pm

Re: Custom answer / ask function

Post by carel » Mon Jan 06, 2014 7:26 pm

Hi Klaus,

I Apologise,

I should have set an extra card, not window.

I'll check out the dictionary.

BTW I just figured out how to make a graphic bigger with mouseEnter and back to size with mouseLeave a minute ago - I think I'm so cool!! :mrgreen:

Thanks,

Carel

Post Reply