PDA

View Full Version : Containing according to text


Peter_Kent
17-08-2007, 03:20 AM
Hi All,

What I would like to do is to set up an object as a container that contains text, and the rule for what it contains is a text string.

Where I am heading with this can be described by the following example: Using the append text action I would like students to construct their own words. A simple example would be to have the word 'kick' and also some objects that append text by adding 'ing' or 'ed' or 'er' or 's', etc. I would have a series of questions (perhaps hidden and revealed using a 'bring to front' action). Depending on what the question was students would construct the appropriate answer using the append text tools that I have set up . What I am wanting is a container that I could use as an answer check box to see if they have spelt the word correctly.

Does this require a new feature (an additional way that I can define what an object contains) or is it something that I can do now. While I have asked for a containing criteria that matches a text box, one that also matches the size or transparency of an object could also be interesting.

Cheers

Peter

davidlloyd
17-08-2007, 10:33 AM
Hello Peter

I've had a play using the 'contain by keyword' action using your kick example. I set up 4 objects with append text actions each with a different suffix as per your example. Then I set up four rectangles to act as containers by keywords, each containing one of the four completed words: kicks, kicker, kicked and kicking with the instruction to return if not contained.

I then added all four key words to the identification property of the text object kick .. and set it to return if not contained. Now while this works in a way, none of the containers would reject the text object because it has all four words in it's identifcation. You would need four separate text objects.

But if the objects are adding the text anyway why would you need to check the spelling?

I append the flipchart but I've only set up the first rectangle on the left as a container.