The methods resize Component, reshape Component and move Component of Window Utilities are deprecated

I am using ignition SDK version 7.9.5-snapshot and the mentioned methods are deprecated. Can anyone please suggest an alternative to set width and height of PMI components at run time.

Your constructor should set the default height and width for the component directly. That’s what will apply when the user drags the component out of the palette.

Hi Phil,

I am not clear with the constructor you are talking about.
here is my code:

I am looking for an alternative to resizeComponent as it is deprecated.

Please suggest.

Thanks,
Mukta

Hmm. You said you were using the SDK, so I assumed you were implementing a new component in a module. In Java. For jython purposes, those methods have all been replaced by system.gui.transform().

1 Like