2 Questions about cards and values

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
tm1274
Posts: 11
Joined: Sun Nov 12, 2006 8:20 pm

2 Questions about cards and values

Post by tm1274 » Tue Nov 14, 2006 3:07 am

Is it possible for each card to be sized differently, so that the initial is one size but the second would be larger. When doing this it seems to change both cards to the larger size. Also I need to create a summary of the selections that were made on card 1 and show them in a printable arrangement on card 2, I am trying to script a field to be the same on card 2 as it is on card 1. I tried the value1 = value2 operator but that did not work, is there a better operator I could use to accomplish this?

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

Post by Mark » Tue Nov 14, 2006 10:48 am

Hi tm1274,

You might want to use substacks of different sizes. You could also make a script like this:

on preOpenCard
set the rect of this cd to 200,200,800,600
end preOpenCard

Put this in the card scripts and have a different rectangle specified for each card.

I don't know what your interface design is like, but you might create a button with the following script:

on mouseUp
put the selection after fld 1 of cd 2
end mouseUp

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

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”