Pulldown Menu Opening Stack

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
jesse
Posts: 205
Joined: Thu Nov 11, 2010 6:32 pm

Pulldown Menu Opening Stack

Post by jesse » Mon May 23, 2011 5:10 am

I have created a simple Pulldown Menu and set it to Use Stack Panel. Once I click the Pulldown Menu the expected Stack Panel shows up but
as soon as I try to interact with it such as click any buttons, or text fields the opened stack disappears. How can I keep the open stack visible and allow the user to interact with it?
Deving on WinVista Home Prem. SP2 32 bit. Using LiveCode 4.6.1 Pro Build 1392

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

Re: Pulldown Menu Opening Stack

Post by Klaus » Mon May 23, 2011 1:17 pm

Hi jesse,

stack menu panels are supposed to act like a real pulldown menu(-button).
So interacting with a field is not intended at all, use a modal stack instead!

What did you script to
1. open that stack
2. for the objects in the pull down stack?


Best

Klaus

jesse
Posts: 205
Joined: Thu Nov 11, 2010 6:32 pm

Re: Pulldown Menu Opening Stack

Post by jesse » Mon May 23, 2011 2:13 pm

Thanks I will check into modals. I assume these are listed in the user guide somewhere.
Deving on WinVista Home Prem. SP2 32 bit. Using LiveCode 4.6.1 Pro Build 1392

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

Re: Pulldown Menu Opening Stack

Post by Klaus » Mon May 23, 2011 3:02 pm

Hi jesse,

"modal" is just a way to open a stack and means that you cannot click anywhere else but in your "mopdal" stack.
Just like the "Ask" and "Answer" dialogs!

Syntax is easy, too:
...
go stack "your stack here" as modal"
...

And don't forget to add a "close this stack" somewhere in your modal stack 8)


Best

Klaus

jesse
Posts: 205
Joined: Thu Nov 11, 2010 6:32 pm

Re: Pulldown Menu Opening Stack

Post by jesse » Tue May 24, 2011 11:57 pm

Thanks!
Deving on WinVista Home Prem. SP2 32 bit. Using LiveCode 4.6.1 Pro Build 1392

Post Reply