Construct Sentence

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
ystan2010
Posts: 26
Joined: Tue Mar 22, 2011 4:38 am

Construct Sentence

Post by ystan2010 » Thu May 12, 2011 9:01 am

lol
Last edited by ystan2010 on Tue May 17, 2011 8:32 am, edited 2 times in total.

SparkOut
Posts: 2943
Joined: Sun Sep 23, 2007 4:58 pm

Re: Construct Sentence

Post by SparkOut » Thu May 12, 2011 11:08 am

There are plenty of techniques you could use, not sure if I've got your meaning exactly right but you could try something like this attached stack.
Make your 3 fields list fields with the lockText set to true, and set the listBehavior set to true. Then you can select individual lines in the fields to choose which option in each part of speech you want. (Make the three fields into a group and put the mouseUp handler in the group script so that it triggers whichever field is selected.) Use "the selectedText of..." to pick the text from each field and add them together to make your sentence for display.
I hope that is at least a starting point. I am sure there are other ways you could do the same too.
Attachments
grammar.zip
(1.22 KiB) Downloaded 254 times

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4163
Joined: Sun Jan 07, 2007 9:12 pm

Re: Construct Sentence

Post by bn » Thu May 12, 2011 11:16 am

Hi ystan,

You would have to program it. If you have specific quesitons just ask them in the Forum

Kind regards

Bernd
Last edited by bn on Tue May 17, 2011 9:22 am, edited 2 times in total.

ystan2010
Posts: 26
Joined: Tue Mar 22, 2011 4:38 am

Re: Construct Sentence

Post by ystan2010 » Tue May 17, 2011 8:03 am

lol
Last edited by ystan2010 on Tue May 17, 2011 5:20 pm, edited 1 time in total.

ystan2010
Posts: 26
Joined: Tue Mar 22, 2011 4:38 am

Re: Construct Sentence

Post by ystan2010 » Tue May 17, 2011 8:35 am

Bernd, kannst du bitte löschen Sie diesen Beitrag für mich? Schätzen Sie es! Bitte schicken Sie mir, wenn u irgendwelche Fragen haben.

Vielen Dank!

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

Re: Construct Sentence

Post by Mark » Tue May 17, 2011 9:14 am

Hi,

I would like to continue to follow this discussion on the forum. Why did you delete your original question Ystan?

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

SparkOut
Posts: 2943
Joined: Sun Sep 23, 2007 4:58 pm

Re: Construct Sentence

Post by SparkOut » Wed May 18, 2011 4:54 pm

Was my sampler stack any help?

Post Reply