Page 1 of 1

Custom Message Boxes

Posted: Thu May 19, 2011 11:19 pm
by townsend
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.

Re: Custom Message Boxes

Posted: Thu May 19, 2011 11:29 pm
by dunbarx
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

Re: Custom Message Boxes

Posted: Thu May 19, 2011 11:40 pm
by dglass
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.

Re: Custom Message Boxes

Posted: Fri May 20, 2011 9:03 pm
by townsend
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?