Card of different sizes
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Posts: 90
- Joined: Sun Feb 15, 2015 2:51 pm
Card of different sizes
Hello,
let's see if I understand correctly
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?
Thank you.
let's see if I understand correctly
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?
Thank you.
Re: Card of different sizes
Buonasera Alessio,
stacksize = cardsize!
But you can always change the size of your cards "on preopencard",
no need for an extra stack.
Best
Klaus
stacksize = cardsize!
But you can always change the size of your cards "on preopencard",
no need for an extra stack.
Best
Klaus
-
- VIP Livecode Opensource Backer
- Posts: 9648
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Card of different sizes
Hi.
Yes and no.
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.
Craig Newman
Yes and no.
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.
Craig Newman
Re: Card of different sizes
Oh the answer is so much simpler
Look up for revChangeWindowSize in the dictionary!
Cheers,
Fred
Look up for revChangeWindowSize in the dictionary!
Cheers,
Fred
-
- Posts: 90
- Joined: Sun Feb 15, 2015 2:51 pm
Re: Card of different sizes
Guten abend Klaus,Klaus wrote:Buonasera Alessio,
stacksize = cardsize!
But you can always change the size of your cards "on preopencard",
no need for an extra stack.
Best
Klaus
I realized that you could do something similar but in this way it messes up the layout of the main card ...
-
- VIP Livecode Opensource Backer
- Posts: 9648
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Card of different sizes
Hi.
Craig
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.ut in this way it messes up the layout of the main card ...
Craig
-
- Posts: 746
- Joined: Sun Feb 04, 2007 11:01 pm
- Location: McKenna, WA
Re: Card of different sizes
AlessioForconi,
For what purpose do you want to have a card of a different size? Seems that a substack would do what you want.
For what purpose do you want to have a card of a different size? Seems that a substack would do what you want.
Tom
MacBook Pro OS Mojave 10.14
MacBook Pro OS Mojave 10.14
-
- Posts: 90
- Joined: Sun Feb 15, 2015 2:51 pm
Re: Card of different sizes
What I want to do is to open a card that will be used to enter search criteria for a query.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.
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.
Re: Card of different sizes
Buongiorno Alessio,
Also your MAIN card can have a "preopencard" scripts which fixes the inconveniences your are thinking of!
Best
Klaus
well, not really...AlessioForconi wrote:... but in this way it messes up the layout of the main card ...Klaus wrote:But you can always change the size of your cards "on preopencard",
Also your MAIN card can have a "preopencard" scripts which fixes the inconveniences your are thinking of!
Best
Klaus
-
- Posts: 90
- Joined: Sun Feb 15, 2015 2:51 pm
Re: Card of different sizes
Hallo Klaus,Klaus wrote:Buongiorno Alessio,well, not really...AlessioForconi wrote:... but in this way it messes up the layout of the main card ...Klaus wrote:But you can always change the size of your cards "on preopencard",
Also your MAIN card can have a "preopencard" scripts which fixes the inconveniences your are thinking of!
Best
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 ...
-
- VIP Livecode Opensource Backer
- Posts: 9648
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Card of different sizes
Hi.
How this search stack is opened and managed is simple as well. Write back if you need suggestions...
Craig
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.What I want to do is to open a card that will be used to enter search criteria for a query.
How this search stack is opened and managed is simple as well. Write back if you need suggestions...
Craig
-
- Posts: 90
- Joined: Sun Feb 15, 2015 2:51 pm
Re: Card of different sizes
Hi Craig,dunbarx wrote:Hi.
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.What I want to do is to open a card that will be used to enter search criteria for a query.
How this search stack is opened and managed is simple as well. Write back if you need suggestions...
Craig
I'm not sure I fully understood what you mean but I gladly accept your offer of suggestions ...
Thank you
-
- Posts: 746
- Joined: Sun Feb 04, 2007 11:01 pm
- Location: McKenna, WA
Re: Card of different sizes
Hi AlessioForconi,
This should get you started. Look up modal and sheet in the dictionary.
This should get you started. Look up modal and sheet in the dictionary.
- Attachments
-
- MyMainStack.zip
- (960 Bytes) Downloaded 205 times
Tom
MacBook Pro OS Mojave 10.14
MacBook Pro OS Mojave 10.14
-
- Posts: 90
- Joined: Sun Feb 15, 2015 2:51 pm
Re: Card of different sizes
Thank you Tom, now studying...quailcreek wrote:Hi AlessioForconi,
This should get you started. Look up modal and sheet in the dictionary.