I do not understand why the text is not displayed with textfield

  • Bonjour j'ai un problème...
    Je ne comprend pas pourquoi le texte ne s'affiche pas !

    Hello I have a problem ...
    I do not understand why the text is not displayed!



    variante qui ne marche pas non plus!
    variant that does not work either!


    meme si je met cette ligne à la place ca ne change rien
    even if I put this line instead it does not change anything

    Code
    set(layer[get(box_title)].html, 'test text');


    que dois je faire ? (j'utilise krpano-1.19-pr3)
    what should I do ? (I use krpano-1.19-pr3)

    Edited 5 times, last by gizmo (October 26, 2017 at 12:37 PM).

  • Hi,

    in the first example there is a missing semicolon (;) here at the end of the line:

    Code
    set(layer[get(box_title)].background, false )

    correct would be:

    Code
    set(layer[get(box_title)].background, false );


    and in the second example the parent setting is not correct:

    Code
    set(layer[get(box_title)].parent, layer[get(box_container)]);

    the box_container variable changes in the loop, so the value of it would need to be used:

    Code
    set(layer[get(box_title)].parent, calc('layer[' + box_container + ']'));

    Best regards,
    Klaus

  • Thank you for your answer, unfortunately with the corrections it still does not work in the first example, nor in the second.

    To test, I copy / paste my code in your example 'demotour-kuchlerhaus'
    just before the scenes and I still do not see the text :' (

    Please help me.

    Edited once, last by gizmo (October 25, 2017 at 5:36 PM).

  • j'ai trouvé !
    i find !

    :)

    this line is bad

    Code
    copy(layer[get(box_title)].url, "%SWFPATH%/plugins/textfield.swf");

    this line is good

    Code
    set(layer[get(box_title)].url, "%SWFPATH%/plugins/textfield.swf");

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!