card/stack height
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
card/stack height
Is there a maximum height a card/stack can be?
-
- VIP Livecode Opensource Backer
- Posts: 10052
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: card/stack height
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
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: card/stack height
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!FourthWorld wrote:32,768 pixels. If you have a monitor larger than that I want it.
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
Re: card/stack height
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
Re: card/stack height
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
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
-
- VIP Livecode Opensource Backer
- Posts: 10052
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: card/stack height
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.
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
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: card/stack height
There is still 'endless' paper available. I have a box containing one (folded) sheet of length 300 Meters.
shiftLock happens
-
- VIP Livecode Opensource Backer
- Posts: 10052
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: card/stack height
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
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: card/stack height
Paginate solution proposed is the right way.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
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
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w