Maybe this is really obvious, but I can't do it... how can my StringGadget know when I've pressed 'Enter' on it after typing some text?

Code: Select all
If OpenWindow(0, 10, 10, 200, 200, #PB_Window_SystemMenu, "Test")
Repeat
EventID.l = WaitWindowEvent()
If EventwParam()=13
MessageRequester("","You Pressed Enter",0)
EndIf
Until EventID = #PB_EventCloseWindow
EndIf
End