It was looking for a event message then looking for the menu item clicked on... However there was no check for checking if the menu was actually selected which I was puzzling over previously.
So now mess(0) = MN_SELECTED is added and after 30 window moves its not gone nuts.
Code: Select all
if e=MU_MESAG AND mess(0) = MN_SELECTED then
if mess(4)=MABOUT% then CALL INFO_BOX
I think this is why it was so random and could happen anything between 2 or 30 window moves. The window would have to be located at particular points on the screen to hit the variable numbers to trigger the menu system..
D'oh!
Back to the weird graphics redraw problems then...