The Interactive Geometry Software Cinderella
Forums-> Cinderella Support (E)-> Cindybugs (3): active textobjects won't stay active
dirkd
|
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.
|
|
|
|