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