Hello Mike,
This new close menu event was indeed added, in version 5.1 and I remember very well of it because I spent hours and hours to implement it!
So, there was a good reason for doing it
This is indeed absolutely required for real time games (
the one to thank for giving me the information is Leonard: http://izibasic.aldweb.com/leonard/) that need to know when to stop/start again the animation after the menu was closed. I spent that number of hours because this event is not provided by Palm OS so I had to trick the system to simulate one...
Now, in a way, you are right, the close event is usually not needed if a selection was made and I understand very well your point of view.
But, between the time the selection is made and the time the menu is really closed there might be a few system ticks and the real time game programmer would rather capture the right event... Otherwise some drawing could occur on top of the menu, which is then erased, erasing at the same time what was drawn.
And also, to be honest with you, since my trick succeeded to capture/simulate this close event, I was so happy with it (remember that I spent hours and hours on this topic!) that I'd rather leave it that way.
I also believe that the succession of events is clean this way:
1. a menu is opened
2. eventually, a menu item is selected
3. the menu is closed
Now, in a usual case, all you need to do in a source code is:
1. was there a menu event? (EVENT 1001)
2. what item was eventually selected? (MENUITEM >0)
At this stage, I believed that this change would cause no change in users existing source codes. I always pay very much attention to the compatibility topic so that any source code of a previous version should compile and run the same way with a new iziBasic version.
So, I hope that you will allow me to ask you one question. I ask it to the friend that you are and not at all in a commercial way at all as I should probably do with the famous reviewer at a great web site (dear other readers, you should bookmark this site if not already done:
http://www.palm247.com) that you are... well you know my sense of humour!
So here is the question: maybe was your source code not really optimized?
Maybe is this the good opportunity to optimize it now?
(I cheated, I asked 2 questions!)
You see, I could write a full story on this topic! So, I better stop now!
Cheers,
@+
aldweb