I've posted this in the bugs forum, but seeing as that gets about as many visitors as most old people's homes once the family have dumped their elders there I thought I'd try it here, too.
Basically pressing enter in the textfield generates an event of value $104 (which doesn't exist) and the EventSource and EventData are both 0. Wuh?
pseudo_group_window = CreateWindow("Select Name For Group",ClientWidth(Desktop())/2,ClientHeight(Desktop())/2,256,128,0,1) pseudo_group_textfield = CreateTextField (16,16,ClientWidth(pseudo_group_window)-32,16,pseudo_group_window) SetGadgetText (pseudo_group_textfield,"hello") Repeat id=WaitEvent() DebugLog "Event = $"+Right$(Hex$(id),4) + " "+EventSource() + " "+EventData() Select id Case EVENT_GADGET If EventSource() = pseudo_group_textfield SetGadgetText (pseudo_group_label,EventData()) If EventData() = 13 Stop Exit EndIf EndIf End Select Forever
Basically pressing enter in the textfield generates an event of value $104 (which doesn't exist) and the EventSource and EventData are both 0. Wuh?