Changing textstyle

  • hello,

    I have a virtual tour with a lot of area hotspots, that shows at cursor position some info with a specific textstyle.
    I would like to create a button that switches this textstyle, to another, that has maybe bigger fonts and different position.
    Intuitively, (I'm not at all a skilled programmer) I can imagine an action that changes the name of the textstyle so to apply the new textstyle
    to all hotspots.
    Is it possible to do that, and how? Or is there an other way to get this?

    thanks

    Toni

  • Hi,

    you could either change/modify the textstyle direct,
    e.g.

    Code
    set(textstyle[stylename].fontsize, 20);
    ..

    or use a custom variable which contains the name of the current textstyle,
    and use - get(...) - in the showtext() call,
    e.g.

    best regards,
    Klaus

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!