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
Your best bet is to put the most buttons you would ever need on a page then use the code to define what buttons are visible, the location of the buttons, and the size of the buttons.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi to all,
Is possible create a button in a specified position by structured text function?
For example, I would like assume that in a part of my program there is a variable called ```
num_of_buttons :UDINT :=3
``` and in the main program something like that
I'm really sorry but I'm trying to learn by myelf
Thanks
Luca
I believe this can't be done in CoDeSys.
Your best bet is to put the most buttons you would ever need on a page then use the code to define what buttons are visible, the location of the buttons, and the size of the buttons.
Originally created by: D. Kugler
the question ist, what shell the function of this buttons should be? Show a image and be hidden, if you click on it?
The function task should be like to https://docs.oracle.com/javase/8/javafx ... utton.html with all metod inside.
If is not possilble is not problem, I'll create a specified number of button.
Another issue, Is possible load an image from usb or specified path?