card/stack height

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
Da_Elf
Posts: 311
Joined: Sun Apr 27, 2014 2:45 am

card/stack height

Post by Da_Elf » Sat Nov 05, 2016 9:31 pm

Is there a maximum height a card/stack can be?

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: card/stack height

Post by FourthWorld » Sat Nov 05, 2016 10:35 pm

32,768 pixels. If you have a monitor larger than that I want it. :)
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

MaxV
Posts: 1580
Joined: Tue May 28, 2013 2:20 pm
Contact:

Re: card/stack height

Post by MaxV » Tue Nov 08, 2016 1:49 pm

FourthWorld wrote:32,768 pixels. If you have a monitor larger than that I want it. :)
No, the limit 32768 probably is on 32 bit. On 64 bit the limit much more, but depending on the OS and version you have to test it. My default max height is 65,535. However I repeat, test it!
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

Da_Elf
Posts: 311
Joined: Sun Apr 27, 2014 2:45 am

Re: card/stack height

Post by Da_Elf » Tue Dec 20, 2016 4:41 pm

im creating a long receipt to be printed and if there are too many items on the receipt then the stack is too long and it gets cut

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10330
Joined: Wed May 06, 2009 2:28 pm

Re: card/stack height

Post by dunbarx » Tue Dec 20, 2016 6:12 pm

So you are printing the card? The printer page setting itself is likely the limiting factor.

There are several other methods, even printing a card in "pages", that is, reloading and reprinting until the entire content is done. Have you tried any of these?

Craig Newman

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: card/stack height

Post by FourthWorld » Tue Dec 20, 2016 7:08 pm

At LC's logical resolution of ~72px, 32,767px = ~38 feet. Not only would that be a massive rendering buffer, but where can you find paper that long?

Perhaps you'll want to do what most programs do: paginate.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2262
Joined: Thu Feb 28, 2013 11:52 pm

Re: card/stack height

Post by [-hh] » Wed Dec 21, 2016 2:08 am

There is still 'endless' paper available. I have a box containing one (folded) sheet of length 300 Meters.
shiftLock happens

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10052
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: card/stack height

Post by FourthWorld » Wed Dec 21, 2016 2:12 am

If I'm going to hand a single receipt to a customer that's 30 meters long, I'd still want it paginated if only to provide page numbers so they can sort through such a large stack more easily.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

MaxV
Posts: 1580
Joined: Tue May 28, 2013 2:20 pm
Contact:

Re: card/stack height

Post by MaxV » Wed Dec 21, 2016 11:14 am

Da_Elf wrote:im creating a long receipt to be printed and if there are too many items on the receipt then the stack is too long and it gets cut
Paginate solution proposed is the right way.
Make a test with your standard page, count the lines.
Then put a check for every item of your recipe, if the number of lines of your text is more than X, then create a new page an continue to insert items. Chek also clone this card command.
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

Post Reply