Fonts in a different stack

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
Preston Shea
Posts: 73
Joined: Sat Apr 08, 2006 6:51 pm

Fonts in a different stack

Post by Preston Shea » Fri Jan 25, 2008 5:44 pm

When I copy a card from stack A to stack B the fontText, fontSize and fontStyle attributes don't come with it. I can only get them right by selecting the contents of the field and changing the font, size and style from the menubar.

I can get the "Copy Card" function when in stack A but not "Paste Card" when in stack B. I've got a stack with lots of cards and I want to copy a single card from stack A to stack B.

As I recall, SuperCard had a nifty set-up to do this and I'm sure I have done it before in Revolution, but I can't remember how.
In nova fert animus mutatas dicere formas corpora.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Fri Jan 25, 2008 6:24 pm

Hi Preston,

I don't think you have set a font and text style etc. for the card. Maybe you have set a textfont for the stack, but you are copying a card rather than a stack.

If you have set the font and style of a field or the text of a field, these properties should be copied together with the card. I haven't observed any problems here.

You can't copy a card using the menus. In my opinion, this is a big deficit. If you want to copy a card, you can do this from the message box:

copy cd 1 of stack "Stack Name 1" to stack "Stack Name 2"

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Preston Shea
Posts: 73
Joined: Sat Apr 08, 2006 6:51 pm

Post by Preston Shea » Fri Jan 25, 2008 8:28 pm

Thanks, Mark. I didn't realize that font attributes wouldn't inherit through the card to the stack. That must be my problem. I still miss that nifty little utility in SuperCard that made dealing with bunches of cards in different stacks so nice. Perhaps in Rev 3.0?
In nova fert animus mutatas dicere formas corpora.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Fri Jan 25, 2008 9:26 pm

Hi Preston,

Cards DO inherit font attributes from a stack, but if you copy the card and paste it in an otherwise empty stack, you're essentially taking away the original stack from the card. So, there is nothing to inherit attributes from anymore.

You're talking about a "nifty utility" rather than a standard SuperCard feature, it seems. Why don't you simply re-create that utility for Revolution?

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

Post Reply