Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Create Visual elements by code

2017-11-14
2017-11-15
  • miguel garde - 2017-11-14

    Hello,

    Is there a way to avoid using the Visualization designer and dynamically create visual content like rectangles, buttons, or images? I want to have a lot of similar elements (probably in the future the number will depend on a config file), but creating them one by one for the worst case scenario and hide the unnecessary seems very tedious and overkill.
    Maybe a placeholder can be created on the visu and then somehow instantiated and configured several times by code?

    Thanks in advance,
    Miguel.

     
  • eschwellinger

    eschwellinger - 2017-11-14

    Hi,
    this is not possible... no plans to implement it at the moment.
    All objects should exist, but could be hidden and appear if needed.

    BR
    Edwin

     
  • miguel garde - 2017-11-15

    Oh, that's a pity. I guess I will have to do all the manual work then...
    Thanks!

    Miguel.

     

Log in to post a comment.