MaxGui TextArea problem

BlitzMax Forums/BlitzMax Programming/MaxGui TextArea problem

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Your looking for SetGadgetLayout, use SetGadgetLayout( textbox, 1, 1, 1, 1 ) so it acts like notepad.

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