rotation, printing
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
rotation, printing
Hello,
I’m new here and I’m working on a small project.
I have a couple of questions and hope that you could help me.
1) How can I rotate fields, buttons to be able to write a text from up to down.
2) I have a stack. Its width is 1622 and height is 588. How could I resize the stack to A4 with saving positions of my objects? My goal is to print it out in this size.
Thanks so much in advance for your help.
Konstantin
I’m new here and I’m working on a small project.
I have a couple of questions and hope that you could help me.
1) How can I rotate fields, buttons to be able to write a text from up to down.
2) I have a stack. Its width is 1622 and height is 588. How could I resize the stack to A4 with saving positions of my objects? My goal is to print it out in this size.
Thanks so much in advance for your help.
Konstantin
Re: rotation, printing
Hi Konstantin,
welcome to the forum!
http://forums.livecode.com/viewtopic.ph ... xt#p167477
Best
Klaus
welcome to the forum!
fields and buttons cannot be rotated, however there is a widget, which will let you rotate text, check this page:1) How can I rotate fields, buttons to be able to write a text from up to down.
http://forums.livecode.com/viewtopic.ph ... xt#p167477
You can "force" to print the big stack into a certain (smaller) rect:2) I have a stack. Its width is 1622 and height is 588. How could I resize the stack to A4 with saving positions of my objects? My goal is to print it out in this size.
Code: Select all
...
## DIN A4
print this stack into 0,0,595,842
...
Klaus
-
- Posts: 253
- Joined: Wed Aug 19, 2015 4:29 pm
Re: rotation, printing
Fields and buttons can not be rotated, but another option is to "export snapshot" your fields and buttons and rotate those by setting the "angle" property.
-
- VIP Livecode Opensource Backer
- Posts: 9837
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: rotation, printing
If setting the print orientation would suffice, see:
https://livecode.com/resources/api/#liv ... rientation
https://livecode.com/resources/api/#liv ... rientation
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: rotation, printing
Klaus wrote: ↑Sun Sep 02, 2018 6:58 pm
You can "force" to print the big stack into a certain (smaller) rect:Code: Select all
... ## DIN A4 print this stack into 0,0,595,842 ...
Where do I have to put it in? in the Message Box?
Thanks
Konstantin
Re: rotation, printing
Hi Konstantin
well, wherever you want to print your stack, be it in the message box or in a button script...
Best
Klaus
well, wherever you want to print your stack, be it in the message box or in a button script...
Best
Klaus
Re: rotation, printing
Klaus wrote: ↑Sun Sep 02, 2018 6:58 pm
You can "force" to print the big stack into a certain (smaller) rect:Code: Select all
... ## DIN A4 print this stack into 0,0,595,842 ...
I’m sorry! I put it in the message box, pressed Enter, closed the message box, chose Print Card, but without result.
What did I do wrong?
Thanks.
Re: rotation, printing
Hi Konstantin,
of course I meant that you need to put it into the script of your button (?) which does the printing.
If issued in the message box, which is also a stack, maybe the message box gets printed.
-> THIS STACK refers to the stack the command has been issued in, in this case the message box stack!
If you want to use the message box, type:
Best
Klaus
of course I meant that you need to put it into the script of your button (?) which does the printing.
If issued in the message box, which is also a stack, maybe the message box gets printed.
-> THIS STACK refers to the stack the command has been issued in, in this case the message box stack!
If you want to use the message box, type:
Code: Select all
print stack "your stack to be printed here!" into 0,0,595,842
Klaus
Re: rotation, printing
Message execution error:Klaus wrote: ↑Sat Sep 08, 2018 1:17 pm
If you want to use the message box, type:Code: Select all
print stack "your stack to be printed here!" into 0,0,595,842
Error description: Chunk: can't find stack
Hint:
Why?
Thanks.
Re: rotation, printing
Did you really enter exactly this:
?
Code: Select all
print stack "your stack to be printed here!" into 0,0,595,842
Re: rotation, printing
Yes, I did.Klaus wrote: ↑Mon Sep 10, 2018 10:35 amDid you really enter exactly this:?Code: Select all
print stack "your stack to be printed here!" into 0,0,595,842
Thanks.
Re: rotation, printing
Ouch, do you really have a stack named "your stack to be printed here!" that you want to print?
Or maybe you just want to replace "your stack to be printed here!" with the name of your stack?
Or maybe you just want to replace "your stack to be printed here!" with the name of your stack?
Re: rotation, printing
Heh, you probably should have said to replace that a couple posts up KlausKlaus wrote: ↑Sat Sep 08, 2018 1:17 pmIf you want to use the message box, type:Code: Select all
print stack "your stack to be printed here!" into 0,0,595,842
Klaus wrote: ↑Mon Sep 10, 2018 10:35 amDid you really enter exactly this:?Code: Select all
print stack "your stack to be printed here!" into 0,0,595,842
@ mikr2003, Just for future reference, not all code posted on the boards should be taken literally, although it can be confusing.
If you see a line with "your [object name] here", that is telling you to replace what is within the quotes with the actual name you chose for that object
Last edited by bogs on Mon Sep 10, 2018 1:31 pm, edited 2 times in total.
Re: rotation, printing
No comment!