I’ve run into a rather annoying problem with the Xojo UI that’s causing me immense amounts of grief. When I click on a UI element (say, a button) to bring up the default event handler, the UI will often bring up a completely unrelated event handler for a completely unrelated control. This sometimes is the event handler for the last control I interacted with and sometimes, it’s just a random one.
Anyone else experiencing this problem? Is there a fix for it? The workaround requires me to get used to a new workflow which is rather annoying when you’re in the middle of a project.
Yes. I see this all of the time. In fact, I’ve now stopped double clicking a control to edit its events, but that is less convenient.
Xojo 2013 4.1
Mac 10.9.1
I’m sure there is a feedback case for this and I started to look for it but the feedback is so massive and jumbled it was going to take more time that I have.
I’ve seen this a few times and noticed that if I save the project (usually via keyboard shortcut) then try again, Xojo recovers and adds events to the correct control.
Hi Anthony,
it seems to me that this happens when clicking an object in the browser pane (the left one) and then the mouse it is moved before the IDE has completed the internal operations to select the object you just clicked.
You can verify if this it is the case with these two different actions:
clicking an element and not moving the mouse
clicking an element and moving away the mouse from the click position
I have - for me it doesn’t happen often and seems to be completely random. Really odd looking at an event list for something not selected in the Navigator!
Sort order and handling of the editors list items is quite on top now (Feedback 25482, 15th Rank). I think this issue (Im experiencing it often, too) could be connected to the sorting and Peters words bring hope therell a solution quite soon.
I’ve run into a rather annoying problem with the Xojo UI that’s causing me immense amounts of grief. When I click on a UI element (say, a button) to bring up the default event handler, the UI will often bring up a completely unrelated event handler for a completely unrelated control. This sometimes is the event handler for the last control I interacted with and sometimes, it’s just a random one.
Anyone else experiencing this problem? Is there a fix for it? The workaround requires me to get used to a new workflow which is rather annoying when you’re in the middle of a project.
Thanks,
Anthony[/quote]
Yes, it’s been a long-standing and very hard to reproduce/find bug. When it shows you a list of unrelated items, that’s because the double-click look at your target, saw no possible events, and moved on to the next target. If you use one of the more explicit methods to get to the window, you’ll find the list empty.
Best workaround I’ve found is to click into 3 unrelated project items. Once you click back into your layout, the editor should have been purged from the cache and loaded fresh. Then everything is back to normal.
When I was with Xojo, I spent a while trying to fix this. But not only is it hard to reproduce, it seems “fix itself” while you’re debugging it, making it quite a problem to solve.