Retaining a field, card to 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
penyo311
Posts: 12
Joined: Thu Aug 21, 2014 7:20 am

Retaining a field, card to card.

Post by penyo311 » Sat Aug 23, 2014 1:00 am

How do I retain a field card to card. Like a chat field, I have images set to char after char as they get entered in..
However when you go to another card all that information stays on the card, how can I get this to "carry over" until I want all the information sent at once?

There are several images involved so user must go to other cards to obtain the ones they want.

Thank you so much in advance!

Kyle, with a smile :)

WaltBrown
Posts: 466
Joined: Mon May 11, 2009 9:12 pm

Re: Retaining a field, card to card.

Post by WaltBrown » Sat Aug 23, 2014 4:10 am

I'm not an expert but I can think of two ways.

The first is to of course lock the screen and copy the field contents each time the user switches cards. I imagine that will get cumbersome if there are quite a few images in the field.

The other is to make the field part of a substack or palette stack with only one card that is smaller than and always on top of another stack that actually switches cards. When the underneath stack switches cards the stack on top (set as a systemWindow in the Stack Inspector so it is always on top) with the field and current data doesn't switch. It could appear like you are changing cards keeping the field contents. Imagine the top stack with the field is a painting and the stack behind it is a large number of picture frames that you can switch between. The card in the top stack with the field doesn't actually switch, just the underlying "frame" stack does.

Others may have additional suggestions...
Walt Brown
Omnis traductor traditor

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Retaining a field, card to card.

Post by Klaus » Sat Aug 23, 2014 11:27 am

Hi Kyle,

this is a snap! :D

1. Select your field
2. Check "sharedtext" for the field in the inspector
3. GROUP that single field! Yes, do it :D
4. Check "backgroundbehavior" for the group
5. DONE!

Now you can have the SAME field on every card you want!

When you create a new card, the group will automatically be placed on that card (backgroundbeahvior!).

And you can always plaxe that group manually on a card if it is not there:
1. go to the card where you want to "plaace" that group.
2. Select menu: Object -> Place Group - Name of your group

Best

Klaus

penyo311
Posts: 12
Joined: Thu Aug 21, 2014 7:20 am

Re: Retaining a field, card to card.

Post by penyo311 » Sat Aug 23, 2014 6:06 pm

Thank you so much! I feel so silly! That was so easy, I appreciate you taking the time to explain it to me!

Kyle, with a smile.

Klaus wrote:Hi Kyle,

this is a snap! :D

1. Select your field
2. Check "sharedtext" for the field in the inspector
3. GROUP that single field! Yes, do it :D
4. Check "backgroundbehavior" for the group
5. DONE!

Now you can have the SAME field on every card you want!

When you create a new card, the group will automatically be placed on that card (backgroundbeahvior!).

And you can always plaxe that group manually on a card if it is not there:
1. go to the card where you want to "plaace" that group.
2. Select menu: Object -> Place Group - Name of your group

Best

Klaus

penyo311
Posts: 12
Joined: Thu Aug 21, 2014 7:20 am

Re: Retaining a field, card to card.

Post by penyo311 » Sun Aug 24, 2014 12:27 am

With all that selected can it still be sent as a message via mysql? Through the group or regular field?

Thank you so much again I just had this thought, just now.

Kyle, with a smile.
Klaus wrote:Hi Kyle,

this is a snap! :D

1. Select your field
2. Check "sharedtext" for the field in the inspector
3. GROUP that single field! Yes, do it :D
4. Check "backgroundbehavior" for the group
5. DONE!

Now you can have the SAME field on every card you want!

When you create a new card, the group will automatically be placed on that card (backgroundbeahvior!).

And you can always plaxe that group manually on a card if it is not there:
1. go to the card where you want to "plaace" that group.
2. Select menu: Object -> Place Group - Name of your group

Best

Klaus

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Retaining a field, card to card.

Post by Klaus » Sun Aug 24, 2014 2:22 pm

penyo311 wrote:With all that selected can it still be sent as a message via mysql? Through the group or regular field?
Sorry, no capisce?

Post Reply