I am confused (not a surprise) on multiple selections...
Long story short, I found some code I wrote 32 years ago and have been playing with it. It's 1.3 code, using DICE on my Amiga.
Working great, but I remembered a bug/programming issue I had seen back then and never addressed.
Basically, I have an "Options" menu with four items that are CHECKIT|CHECKED|MENUTOGGLE entries.
My program uses IntuitMessage GetMsg to read the Class and Code.
I then do switches on the Class and then on the MENUPICK (Code) and have case entries for each.
For troubleshooting, I added a "puts ("Sound");" in one and a "puts("Extra");" in the other in my case statements so I could see on the shell when each registers.
And as long as I do a normal select (RMB, to the Options menu, hover over one of them and let go) it works fine. Checkmark goes away, my variables get set, I see the puts proper result in my shell.
I can do the same thing when I RMB to select the item while using the RMB to get to the menu option.
What doesn't work is if I am holding the RMB and then use the LMB to select one AND THEN another one (while still holding the RMB).
When I let go, only the first item has my variables get set and shows results of the puts command.
BUT, both items lose their checkmarks (or gain them...)
i.e. the checkmark shows up or goes away with each LMB click, but only the first one registers any activity in the case statement.
I know I'm doing something wrong, but not sure what...
Pointers on places I can look for help? I'm not yet finding what I think I need in the books/PDFs/text files (Amiga C Manual) I have been looking at...
Thanx,