Change component size

Is there a way to change the component size and location during runtime? For example, I have a text box that gets its content from a database. Sometimes there will be a lot of text. I would like to vary the text box size according to the content.

Thanks

1 Like

Yes, use these functions in a Python script:

system.gui.moveComponent(component, x, y)
system.gui.resizeComponent(component, width, height)
system.gui.reshapeComponent(component, x, y, width, height)

Best,

5 Likes

Thank you.

Why aren't these functions in the user manual? Are there other functions that are not in the user manual? Would love to know where to find a complete list...

They are deprecated and still exist only for backward compatibility. All of their functionality is available in system.gui.transform().

1 Like