Wanna press enter to add text to the textarea but this isn't working any advice.
Global EditWindow:TGadget=CreateWindow("EditWindow",0,00,611,509,0,3) Global teaTextArea0:TGadget=CreateTextArea(9,10,459,319,EditWindow,0) SetGadgetText teaTextArea0,"" SetTextAreaColor teaTextArea0,255,255,255,1 SetTextAreaColor teaTextArea0,0,0,0,0 SetGadgetLayout teaTextArea0,1,0,1,0 Global libListBox0:TGadget=CreateListBox(481,12,109,317,EditWindow) AddGadgetItem libListBox0,"item0" SelectGadgetItem libListBox0,0 SetGadgetLayout libListBox0,1,2,1,2 Global tfdTextField0:TGadget=CreateTextField(8,336,582,20,EditWindow) SetGadgetLayout tfdTextField0,1,0,1,0 Global HostButt:TGadget=CreateButton("Host",9,375,67,15,EditWindow,1) SetGadgetLayout HostButt,1,0,1,0 Global btnButton1:TGadget=CreateButton("Connect",13,435,64,15,EditWindow,1) SetGadgetLayout btnButton1,1,0,1,0 Global IPtxt:TGadget=CreateTextField(87,433,96,20,EditWindow) SetGadgetLayout IPtxt,1,0,1,0 Global NameTXT:TGadget=CreateTextField(423,408,96,20,EditWindow) SetGadgetLayout NameTXT,1,0,1,0 Global lblLabel0=CreateLabel("Name",382,409,32,16,EditWindow,0) SetGadgetLayout lblLabel0,1,0,1,0 '-mainloop-------------------------------------------------------------- Repeat Select WaitEvent() Case EVENT_GADGETACTION ' interacted with gadget DoGadgetAction(EventSource()) Case EVENT_WINDOWCLOSE ' close gadget Exit End Select Forever '-gadget actions-------------------------------------------------------- Function DoGadgetAction( gadget:Object ) Select gadget Case tfdTextField0 If EventData () = 13 SetGadgetText teaTextArea0,GadgetText(tfdTextField0) DebugLog "Enter Hit" EndIf Case HostButt ' user pressed button Case btnButton1 ' user pressed button Case IPtxt If EventData() = 13 Then ' user pressed return in textfield EndIf Case NameTXT If EventData() = 13 Then ' user pressed return in textfield EndIf End Select End Function