Hey guys,
I’m having some rather substantial issues with framework based events not firing in a web app.
So here’s my biggest issue…
On my page, I have a container control on that page statically in the IDE. Inside that container control, I embed multiple other container controls that are in effect a control group (not really but I do save them into an array as they are created). Now, when I click on one of these embedded containers, I have a menu show up. Now, this is not one of Xojo’s WebMenus because they don’t properly scroll if they extend beyond the boundaries of the web page (another quirk of Web Edition). So instead, I created my own menu using a listbox that I show and hide (thank you Michel Bujardet for the initial help with that one). This has worked great form some time now. I click on the container control, the menu shows up and I click on the item I want for the menu and all is good.
Until now…
I have added some code to the MouseMove event of my web page. I want to use an animator to move a toolbar into place if the cursor goes to the top of the page. Works great. But added the MouseMove event 100% kills the ability for me to click in the listbox! It pops up, but I can’t do anything with it. The CellClicked event will not fire. If I take out the Mouse events from the page, things fire just fine.
So I’m really stuck. I haven’t been able to duplicate this in a smaller project yet but am working on it.
It seems like when the mouse events fire on the window, they take the focus away from other controls and then those controls won’t receive the events. I’m not sure. I’ve seen similar issues in the past like this where events in the page, screw up events for children on the page.
And the GotFocus and LostFocus events are a mystery to me because I NEVER see them fire even when I call the SetFocus method.
All just part of the quirks of WE I suppose. I wish Xojo would take some time and fix some of these really annoying issues. I see other times where the resized event won’t fire. Constructors don’t fire or don’t fire properly on container controls, etc.
So until I figure out how to duplicate this and throw a bug report up, I’m wondering if anyone else has seen this sort of behavior and how you might do a workaround.
IMHO, framework events should never be suppressed by user code.
Oh and in case you are wondering, I’ve disabled all JavaScript that could possibly run on this page. So it’s not some errant JavaScript code that’s causing the issue.