I’d agree… but I’d also assume that it would be “code”
and these menus are referenced THREE times in the code
Declaration in the IDE
WIndow Open event to set the Listindex
Window Close event to get the Listindex
Here is something extra strange. I said there were TWO, in a control set.
I broke it apart and gave them distinct names… now ONE works, the other doesn’t
The one that doesn’t , has the original name (I deleted the old control and added it back)
Now I’m going to try and delete it, and give it a totally different name
Seems Gremlins from XOJO in days past have crept back into to Xojo of days present
Could not reproduce the fault on Windows 7, Xojo v2014r2.1.
Did the PopupMenu show ListIndex 0 item as soon as user selected any of the displayed item from Popup? Or some other steps were also involved before ListIndex 0 item got selected on its own?
The user clicks and selects any of the 3 options, and when they release the mouse it pops back to 0
there are no other steps… the content of the popup isn’t even examined until the window closes
The fact that it worked in a different window says that something is funky on the window. I had that happen during one of the beta periods. Replacing the window with a new one seemed to do the trick.
If you have Arbed then have a look at the source code in there. I remember a case where I found weird code with Arbed that could not be seen in the IDE.