Alarm Border Dynamic Sizing

Hi,

I'm trying to add an alarm border to a genie that will change size at runtime. The genie has components that will be shown/hidden based on configuration read from the PLC, and I need the alarm border to expand to accommodate this.

My first couple attempts were:

1. Create a scaling expression on a rectangle in the group which has the alarm border configured.

This had no effect on the alarm border size. At runtime, the rectangle can be seen to expand as intended but the alarm border remains unchanged.

2. Add the scaling expression to the group itself.

This was more successful, in that the alarm border did expand with the group, however the thickness of the alarm border was also scaled. E.g. when the width of the group was doubled, a 5 pixel wide alarm border became a 10 pixel wide alarm border. This is not great, and looks particularly bad when the vertical and horizontal scaling differs. 

Any suggestions on another approach to get this working would be welcome! 

Parents Reply Children
No Data