Page 1 of 1

How to add a scrollbar to a card? Set size of card?

Posted: Wed Nov 13, 2019 3:19 pm
by karmacomposer
Though I am not new, I keep coming back to Livecode, forgetting stuff. This is for Windows initially, but will need it for all major deployment options eventually. My license is Livecode Business with all deployment options.

I am creating a stack with multiple cards. I need each card to have its own size and some require scrollbars.

On one card, I have a tab area and they need scrollbars.

How is this done?

Mike

Re: How to add a scrollbar to a card? Set size of card?

Posted: Wed Nov 13, 2019 4:40 pm
by jmburnod
Hi Mike,
As far i know we can't set the size of a cd, width and height of one card = width and height of stack.
You may use group with scrollbar to display a content larger than your card.
Good luck for next step
Jean-Marc

Re: How to add a scrollbar to a card? Set size of card?

Posted: Wed Nov 13, 2019 4:44 pm
by FourthWorld
Cards themselves are the size of the stack, but you can place controls on the card wherever you like up to about 32' by 32', and a scrolling field can have up to a theoretical limit of 4GB (the practical limit in terms of memory will be smaller).

To make the contents of a card scrollable, group the controls and turn on the group's hScrollbar and vScrollbar properties.

Re: How to add a scrollbar to a card? Set size of card?

Posted: Wed Nov 13, 2019 5:02 pm
by Klaus
Mr. Felker,

I'm still waiting for the remaining 400,- US $ from my invoice from october 2018!

Re: How to add a scrollbar to a card? Set size of card?

Posted: Wed Nov 13, 2019 5:20 pm
by dunbarx
Hi.

You can set the size of the stack based on the requirements of each card. This is considered awkward in terms of user interface, but is otherwise simple and straightforward. You might consider maintaining, say, the topLeft as the size of the card window changes, just to keep some sort of sanity in your stack.

Craig