Citect Scada 2018 SA -Adjust default trend label width

Hi,

Are we able to adjust the default trend label width or is it hardcoded and can only be adjusted during runtime?

Thanks,

Rune

Parents
  • Hi Rune,

    Unfortunately you have to do this via cicode, and you can't change the defaults via cicode, you can only modify instances and that complicates things.

    One approach would be to hook the PenCreated event and make the resize modifications, but that event is already hooked in the trend page implementation SA_Include\TrendPage.ci Line 934. Even if you modified the include project (not recommended of course) to give yourself a hook, you would also need to handle the fact the cursor is not there by default with pens already added, etc. BUT, since the page s in your project, not an include, you can probably add a trend cursor in by default on your HD/UHD trend page.

    Another option is to hook the CursorMoved event and run some code over the pen labels. However that would have its own problems, including annoying operators who have manually sized labels.

    cheers,

    bradley
Reply
  • Hi Rune,

    Unfortunately you have to do this via cicode, and you can't change the defaults via cicode, you can only modify instances and that complicates things.

    One approach would be to hook the PenCreated event and make the resize modifications, but that event is already hooked in the trend page implementation SA_Include\TrendPage.ci Line 934. Even if you modified the include project (not recommended of course) to give yourself a hook, you would also need to handle the fact the cursor is not there by default with pens already added, etc. BUT, since the page s in your project, not an include, you can probably add a trend cursor in by default on your HD/UHD trend page.

    Another option is to hook the CursorMoved event and run some code over the pen labels. However that would have its own problems, including annoying operators who have manually sized labels.

    cheers,

    bradley
Children
No Data