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

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!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
karmacomposer
Posts: 361
Joined: Wed Apr 27, 2011 2:12 pm

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

Post by karmacomposer » Wed Nov 13, 2019 3:19 pm

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

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

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

Post by jmburnod » Wed Nov 13, 2019 4:40 pm

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
https://alternatic.ch

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9837
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

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

Post by FourthWorld » Wed Nov 13, 2019 4:44 pm

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.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

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

Post by Klaus » Wed Nov 13, 2019 5:02 pm

Mr. Felker,

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

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9663
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

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

Post by dunbarx » Wed Nov 13, 2019 5:20 pm

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

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”