Is it possible to dynamically resize a window?

I am wondering if it is possible to dynamically resize a window?

(Using Ignition 7.6.4)

I have the following script in a Toggle Button mouseClicked event. The button is on the form I wish to resize:

window = system.gui.getParentWindow(event) system.gui.resizeComponent(window, 354, 288)
But the above script results in the exception: “Component is not in a standard container”.

Thanks for any ideas.

you can just use size attribute which is complex data type.

Not great code but example.

		window = system.gui.getParentWindow(event)
		size = window.size
		maxSize = window.maximumSize
		size.height = window.minimumSize.height + calculation
		size.width = window.minimumSize.width + calculation
		if window.size.width != size.width:
			window.size = size
2 Likes

Works great!

Thank you todd.be!