Ordinarily I have no problems with the behavior of message boxes in the GUI environment (non-3D). In a small test program, I can get one to appear over the 3D environment and it will disappear when I click on it with a mouse as you would expect. I am working on another 6000-line program with the same basic structure as the small test program just mentioned and yet I can't get the message box to go away by clicking OK. Yes, there are about 20 conditionals in my game loop (more than the test program) which might have something to do with it. The basic code in both programs is:
if ENTRY$() = "x"
SHOW MOUSE
message "hi"
CLEAR ENTRY BUFFER
HIDE MOUSE
endif
I have tried various arrangements with clearevent and clear entry buffer but cannot get the it to close. Interestingly, if I hold down the spacebar, which depresses the OK button, and then hit the OK button several times, the message box will close and the game loop will resume normally. I would appreciate any insights. Thx.