I have a question about the syntax used in bindings.

I have a question about the syntax used in bindings.

I read the wiki but am still a bit confused. I am trying to use bindings to set the color of various text items etc and have them all change at once by changing the variable. First i use the set variable action to name a variable fgc, for example, and set the value to ffdab779 for the color I want the items to be. Then I select the item in question and on the binding tab under text and normal color I put in $fgc for the value which I thought would then change the color.

I think I just don’t understand the syntax can you help with this. Also as a side note I tried a couple of time and it now lists fgc as a variable how do I clear it out if I no longer want it as a variable.

Any help would be appreciated.

]]>

6 Commentsto I have a question about the syntax used in bindings.

  1. Anonymous says:

    < ![CDATA[

    Add 0x in front of the color

    ]]>

  2. Anonymous says:

    < ![CDATA[

    Lukas Morawietz thanks that worked like a charm. I have one other question. I then went to try the same thing on box properties. After reading the wiki it seemed pretty straight forward but again it didnt work as expected. i started simplpe trying to change the box border color. I selected item properties, then box and put the bc:0x$fgc for the variable. It kept saying it was missing a “;” before statement.


    I then re-read the wiki and tryed an example straight from there putting bc:0xffff0000 which the wiki says should make all borders red and it again says At line 1:missing ; before statement. Anything you can see im doing wrong

    ]]>

  3. Anonymous says:

    < ![CDATA[

    Apparently the String conversion isn’t automatic in this case. Use » “bc:0xffff0000” «

    ]]>

  4. Anonymous says:

    < ![CDATA[

    Lukas Morawietz that worked liked that but when I try to replace with a variable no luck, the reason for the variable is so I could change multiple items at once so no us ejust changeing the color this way

    ]]>

  5. Anonymous says:

    < ![CDATA[

    Boxes are not straight forward because a single property packs a lot of data. You need to construct a string value, for instance this way:


    “bc:”+$fgc


    Where the value of the fgc variable can be 0xffff0000.

    ]]>

  6. Anonymous says:

    < ![CDATA[

    Pierre Hébert​​​ when I set it like that the box color is changed to transparent. I know I set the variable color correctly because the text items I set bindings for using that variable change. I even tried have the box border a different color to see if I had made the padding too big or something else that might hide the box. I had it set to blue in the normal box properties and the box showed up. But once I added the binding and pressed the set variable button the box border color changed to transparent. So it is is affecting the border color just changing it to transparent instead of the color I want.

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *