Question for resize of windows

Hi,

I have a tab widget to switch between windows.


When click the TabWindow, want to resize and relocate the expected window 1 and window 2 as shown in below snapshot.

In fact, when I added below script in TabWindow script, it show below errors.


It seems that the usage of system.gui.transform is not correct.

Anyone could help?

Thanks in advance.

I don’t believe that you can transform a window because transform is used to manipulate objects within a window. However, you can set some parameters to pass into the windows when opening and then those should be able to dictate what the position of the popup is (I have not had a chance to test this.) The following is taken from the documentation at: Popup Windows - Ignition User Manual 8.0 - Ignition Documentation

1 Like

@tyrel.parker

Thanks for your detail comments.

I’ve achieved it with window resize by directly set the size.width and size.height of window and also call the setLocation function to adjust the window position.

Another alternatively by using canvas template also works.

1 Like