Page 1 of 1

Card of different sizes

Posted: Thu Feb 18, 2016 10:43 pm
by AlessioForconi
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.

Re: Card of different sizes

Posted: Thu Feb 18, 2016 11:12 pm
by Klaus
Buonasera Alessio,

stacksize = cardsize!

But you can always change the size of your cards "on preopencard",
no need for an extra stack. :D


Best

Klaus

Re: Card of different sizes

Posted: Thu Feb 18, 2016 11:16 pm
by dunbarx
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

Re: Card of different sizes

Posted: Fri Feb 19, 2016 12:22 am
by FredBeck
Oh the answer is so much simpler :mrgreen:
Look up for revChangeWindowSize in the dictionary!
Cheers,
Fred

Re: Card of different sizes

Posted: Fri Feb 19, 2016 12:27 am
by AlessioForconi
Klaus wrote:Buonasera Alessio,

stacksize = cardsize!

But you can always change the size of your cards "on preopencard",
no need for an extra stack. :D


Best

Klaus
Guten abend Klaus,

I realized that you could do something similar but in this way it messes up the layout of the main card ...

Re: Card of different sizes

Posted: Fri Feb 19, 2016 1:05 am
by dunbarx
Hi.
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.

Craig

Re: Card of different sizes

Posted: Fri Feb 19, 2016 1:47 am
by quailcreek
AlessioForconi,
For what purpose do you want to have a card of a different size? Seems that a substack would do what you want.

Re: Card of different sizes

Posted: Fri Feb 19, 2016 9:25 am
by AlessioForconi
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.

Re: Card of different sizes

Posted: Fri Feb 19, 2016 9:26 am
by Klaus
Buongiorno Alessio,
AlessioForconi wrote:
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... :D
Also your MAIN card can have a "preopencard" scripts which fixes the inconveniences your are thinking of!


Best

Klaus

Re: Card of different sizes

Posted: Fri Feb 19, 2016 9:39 am
by AlessioForconi
Klaus wrote:Buongiorno Alessio,
AlessioForconi wrote:
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... :D
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 ...

Re: Card of different sizes

Posted: Fri Feb 19, 2016 2:59 pm
by dunbarx
Hi.
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

Re: Card of different sizes

Posted: Fri Feb 19, 2016 10:51 pm
by AlessioForconi
dunbarx wrote:Hi.
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 ... :lol:

Thank you

Re: Card of different sizes

Posted: Fri Feb 19, 2016 11:40 pm
by quailcreek
Hi AlessioForconi,
This should get you started. Look up modal and sheet in the dictionary.

Re: Card of different sizes

Posted: Sat Feb 20, 2016 8:23 am
by AlessioForconi
quailcreek wrote:Hi AlessioForconi,
This should get you started. Look up modal and sheet in the dictionary.
Thank you Tom, now studying...