Page 1 of 1

dynamic drawing

Posted: Mon Feb 17, 2020 6:19 am
by seoman
I want to draw based on data.
If the PLC data informs the HMI, the machine has has 4groups of 6 modules with 2 lamps. The thing to draw might be a simple circle with a color bases on the status of the Lamp.
But the thing to draw also needs to be able to generate an on_click_event.

In delphi i would create instances of Tshape and assigning the properties based on the data.

I have no clue on how to start in iX. The C languages is not my concern but the lack of a canvas property or surface to dynamicly create components on is.

Can someone point me in the right direction?
Regards,
Simon

Re: dynamic drawing

Posted: Thu Feb 20, 2020 10:29 am
by Russ C.
Here is an example project that allows for drawing objects dynamically.

Here is a link with an idea to detect click events on objects that are drawn dynamically:
https://stackoverflow.com/questions/127 ... wn-graphic

If you would like, we can get on a call and go over iX Developer and answer any questions you have so far, and we can go over some best practices and functionality of it. Our support phone number is in my signature. Or you can email us using the contact us link.