How to dynamically resize GTextField?

Hi,

I’m using the G4P library and I’m trying to create a text field that will automatically resize when the user enters more and more text. However, I am unable to find a setWidth() method, is there any other way that I can implement this?

Thanks!

@quark (G4P creator please help!)

It is not possible to resize a GTextfield once it has been created, but you can have a scrollbar automatically if the text gets too long.

1 Like