Your looking for SetGadgetLayout, use SetGadgetLayout( textbox, 1, 1, 1, 1 ) so it acts like notepad.
Example,
Example,
Local window:TGadget window=CreateWindow("My Window",40,40,320,240) Local TextBox:TGadget = CreateTextArea( 0, 5, ClientWidth( window ), ClientHeight( window )-4, window ) SetGadgetLayout( TextBox, 1, 1, 1, 1 ) While True WaitEvent() Select EventID() Case EVENT_WINDOWCLOSE End End Select Wend