Custom Message Boxes

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
townsend
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 430
Joined: Sun Feb 13, 2011 8:43 pm

Custom Message Boxes

Post by townsend » Thu May 19, 2011 11:19 pm

My application requires, many varied little windows to pop open and collect one, two or three field values. And of course, each with a Label object, for directions.

What's the best way to accomplish this? I'm thinking lots of little sub Stacks, each for a different kind of input. Does this sound about right? Is there a better way?

Also-- when I call these custom message box Stacks, can I pass and return values?

PS: That Summer Academy has been helping me a LOT. It's just what I needed.

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

Re: Custom Message Boxes

Post by dunbarx » Thu May 19, 2011 11:29 pm

You are right. In the old HC days, there were gadgets that made these things. My favorite is "megaWindow" by Dan Geller.

In LC, everything should be a stack. No externals, communication is straightforward, with the usual controls throughout. It is a better world.

Craig Newman

dglass
Posts: 519
Joined: Thu Sep 24, 2009 9:10 pm
Contact:

Re: Custom Message Boxes

Post by dglass » Thu May 19, 2011 11:40 pm

If the dialogs are all the same size you could create a single 'Dialog' stack with multiple cards, and then set the card when the stack opens.

Creating a bunch of individual, single-card stacks works too.

Check out the 'modal' command in the Dictionary.

townsend
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 430
Joined: Sun Feb 13, 2011 8:43 pm

Re: Custom Message Boxes

Post by townsend » Fri May 20, 2011 9:03 pm

Thanks guys-- excellent idea-- using one stack with many cards,
for my custom message boxes.

Since I already have a Splash Stack, doing not much of anything,
would it be okay to create additional Cards off this Main Stack?
Or would that lead to problems latter on?

Post Reply