Not able to duplicate a card

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
garyth123
Posts: 88
Joined: Sat Apr 27, 2013 11:14 am
Contact:

Not able to duplicate a card

Post by garyth123 » Sat May 04, 2013 5:13 pm

I am very new to LC and have the above problem.

When I go to the Edit menu to duplicate a card nothing I do seems to make the option "Duplicate Ctrl D" selectable. The stack is saved however the name of the file does not appear in the stack window. The name of the window appears as"Untitled 3 *".

This is a bit inconvenient. Can anyone offer any advice?

sturgis
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1685
Joined: Sat Feb 28, 2009 11:49 pm

Re: Not able to duplicate a card

Post by sturgis » Sat May 04, 2013 6:00 pm

To copy a card using ctrl-d the card must be selected. If you're in edit mode you can double click the card and it should open up the property inspector, at which point ctrl-d should duplicate it. (the property inspector should show that the card is selected for this to work) If you don't want to mess with double clicking you can "select card "cardname" in the message box, then hit ctrl-d

Easier is probably to use a direct command in the message box. You can either use copy or clone.

copy card "cardname"

paste -- will then paste the card thats in the clipboard


Or clone card "cardname"

As for why the title bar shows the name of the stack with * that indicates that you haven't set the title of the stack yet. Open the inspector for the stack, set the title and voila' .

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Not able to duplicate a card

Post by Simon » Sun May 05, 2013 4:13 am

OK, do what Sturgis says...
But I'd like to check on something, is the reason for duplicating your card is to have something constant like a maybe a nav bar?

If so then check out "group" and setting it as a background. This will duplicate the nav bar on all new cards and has the advantage that you only need to edit one group and they will all update to the same thing. You can also remove the group from any card you like as you design.

If not... do what Sturgis says :D

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Post Reply