it's a known bug that windows don't react on changing their WF_SHOW flag. As a workaround, you have to make its panels and children manually invisible. This will be fixed in the update I hope to release this year.
How do I properly hide each element? I tried resetting the SHOW flag and WF_SHOW but neither work to make the window invisible.
EDIT: And how can I check if the Enter key was pressed inside an EditBox like with inkey?
var r = inkey(input_string);
if(r==13){ // enter key was pressed
... // handle the string now
}
EDIT2: Just found in the manual --> void Key() should do the trick!