Hello,
I have a couple of questions
What I am trying to do is have an empty field. There is a button next to it, user presses button, and what is in the field is transferred to a label, or a fixed piece of text.
I have done:
Code: Select all
on mouseUp
set the text of label "myLabel" to the text of field "myField"
end mouseUp
And it won't work for me. This is most likely super super simple, I have searched quite a bit and couldn't find any raw code, but bare with me if I missed something super obvious. Now if I wanted to make a selectable menu, either a pull-down or selectable, how would this work?
I assume the code is something like:
Code: Select all
on menuPick pItemName
switch pItemName
if pItemName is "Option 1" then doSomething --doSomething being the function (or handler) to add that selection to a label
end switch
end menuPick
Now if this all worked, and I had a list of labels on a separate card all displaying information from the first card, I want to save it as a PDF. All in the same layout as the card, so I am assuming the code goes like this:
Code: Select all
on mouseUp
print card from topLeft to rightBottom into pageRect --pageRect being the page I want to save/print
end mouseUp
Shouldn't that give me the option to print, then from there I can save the PDF? Or is there a way I can press a button, and boom, a PDF appears? I've looked, but again, couldn't really find anything that directly relates to what I am attempting to do.
Thank you,
rf928