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!
After doing several tests I think I have figured out that they can not create two different sized card in the same stack, at least I did not succeed, right?
Wanting to open a second card of different size from the main card at run time I must create in a different stack to be included in the program and called for this purpose, right?
Admitting that he is right, but I'm wrong, can you give me some more precise indication about?
You cannot have two different sized cards in the same stack at the same time, but that hardly matters, since you can only see one card at one time.
You can change the card (stack) size whenever you wish. For example, you may have card 1 set to a certain rect. If you navigate to card 2, you can change that rect to anything at all. The user will see these changes as somewhat abrupt.
So if what you are really asking is if you can have two differently sized cards OPEN at the same time, one on top of or perhaps next to another, then you need two stacks (or a substack). This is commonly done when a palette is required to float above a stack; that palette is just another stack, and of course is usually much smaller.
ut in this way it messes up the layout of the main card ...
In what way? The controls on the card do not change or shift. It is true that if you make the card window smaller, you may orphan certain controls off screen. That can be managed, of course, but should not be a surprise.
quailcreek wrote:AlessioForconi,
For what purpose do you want to have a card of a different size? Seems that a substack would do what you want.
What I want to do is to open a card that will be used to enter search criteria for a query.
It will be open and will serve as a modal that has minimum dimensions and necessary that for sure are lower than those of the main card.
Klaus wrote:But you can always change the size of your cards "on preopencard",
... but in this way it messes up the layout of the main card ...
well, not really...
Also your MAIN card can have a "preopencard" scripts which fixes the inconveniences your are thinking of!
Best
Klaus
Hallo Klaus,
I imagine you can do in this way, but there is complicated everything having to manage the re-design of the main card?
If I understand correctly what you mean ...
What I want to do is to open a card that will be used to enter search criteria for a query.
It sounds to me like this search card is a substack that floats above the main stack. Its style is up to you. And that means, simply, that two different cards are open at the same time. And that means that two different stacks are open at the same time. The size of each is no longer the issue, only that two are open simultaneously.
How this search stack is opened and managed is simple as well. Write back if you need suggestions...
What I want to do is to open a card that will be used to enter search criteria for a query.
It sounds to me like this search card is a substack that floats above the main stack. Its style is up to you. And that means, simply, that two different cards are open at the same time. And that means that two different stacks are open at the same time. The size of each is no longer the issue, only that two are open simultaneously.
How this search stack is opened and managed is simple as well. Write back if you need suggestions...
Craig
Hi Craig,
I'm not sure I fully understood what you mean but I gladly accept your offer of suggestions ...