How to print text to a Text Field..?

BlitzPlus Forums/BlitzPlus Programming/How to print text to a Text Field..?

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.

uhm... like this? :)

app=CreateWindow("hello gadgettext!",0,0,320,240)

txt1=CreateTextField(32,32,80,32,app)
txt2=CreateTextField(32,80,80,32,app)

butt=CreateButton("copy",32,144,32,32,app)

Repeat

	WaitEvent()
	
	If EventSource()=app
		If EventID()=$803 Exit
	EndIf
	
	If EventSource()=butt
		If EventID()=$401
			SetGadgetText txt2,TextFieldText(txt1)
		EndIf
	EndIf
	
Forever
End