this part handles the close window button:
I'm tot sure what you want the text to do.
Code:
while(not leavingLoop)
for everyCommand = 1 to nCommands
if(DEBUG and msg$(everyCommand)<>"") print msg$(everyCommand)
switch(msg$(everyCommand))
case "_QuitRequested"
case "MainWindow:_QuitRequested"
leavingLoop = true
break
default
end switch
wend
CloseWindow() // Directs to a clean-up and end program subroutine.
end
I'm tot sure what you want the text to do.