getFixed(String objName)?

HenkH shared this question 11 years ago
Answered

We wrote a script to retrieve information about an applet.

We wonder how to retrieve object states like AbsolutePosition, Fixed, Condition, DynamicColors, etc.

We found setFixed(String objName, boolean flag).

How about getFixed(String objName)?


Kind regards,

Henk Hietbrink

Comments (3)

photo
1

Try: getXML(String objName)

photo
1

getXML results in a long string and implies a lot of text manipulation to retrieve the specific characteristic. There is no easy way which delivers a boolean?

Has someone made a javascript function available that returns a boolean?

photo
1

Not tested, but this might work:


    function isFixed(name){

    return ggbApplet.getXML(name).indexOf("<fixed val=\"true\">) > -1;

    }

© 2022 International GeoGebra Institute