The Interactive Geometry Software Cinderella

Forum: Cinderella Support (E)

Forums->Cinderella Support (E)->Cindybugs (3): active textobjects won't stay active

dirkd
3 stars
Cindybugs (3): active textobjects won't stay active


As is explained in the documentation, textobjects can reference geometric objects, e.g. the coordinates of a point, and display changes in real time.

Often you want to perform some calculation in Cindyscript and show the result. In the simplest example I just define a constant in the folder \Initialization with the instruction
a:=5

and then show the value of a in the drawing by selecting the text-tool and entering the line a = @{a}. As an alternative I can select de function-tool, enter just a by itself, and close the dialog box with the button [Equation]. In both cases I see the equation
a = 5,
embedded in the drawing. A change in the value of a, say by another script, is displayed in real time.

Now comes the bug: after saving and re-opening the construction, the textlines are no longer active. Doubleclicking on the textobject generates a Java error. The only solution is to select the textobject, open the inspector window, and to enter the same text again (just typing enter suffices).

As a workaround, one can use the drawtext() function, but it would be nice if one could avoid the use of the scripteditor for unexperienced pupils.

A related problem shows up if you export the construction to a web page: on the web page too, the text objects are no longer active, and there is no way to activate them again from within a browser window.

 
on: Wed 18 of Oct, 2006 [20:15 UTC] reads: 119882

Posted messages

author message
Aw: Cindybugs (3): active textobjects won't stay active
on: Mon 23 of Oct, 2006 [10:08 UTC]
Dirk,

I just uploaded a new version to http://beta.cinderella.de/public - please check whether it fixes these issues!

Ulli


author message
dirkd
3 stars
Re: Aw: Cindybugs (3): active textobjects won't stay active
on: Mon 23 of Oct, 2006 [20:52 UTC]
Ulli,

As far as I can tell, the new version (build 730) fixes both problems, with the saved .cdy files and in exported web pages. Yet another quick fix.

Thanks,
Dirk


author message
Aw: Cindybugs (3): active textobjects won't stay active
on: Mon 23 of Oct, 2006 [08:25 UTC]
Dirk,

I could reproduce this problem - actually there are two problems.

a) the Text object seems to loose it's position data.
b) the Function Text object cannot show a because the initialization is done after the load (and display) of the Function Text.

I will fix these issues for the next release.

Ulli




Show posts:
 
Language