mouseMove details (mouseButton)

I’m using xojo2014r1.1 for this, and tried is Firefox and Internet Explorer… both having the same issue (which makes me think I’m doing something wrong).

I have a container control on a webPage. Within the container control, I have the event handler of ‘mouseMove’. Referencing the details.button… it’s ALWAYS 1 (leftMouseButton) regardless of which button is pressed. It even shows 1 when no buttons are pressed. Am I doing something wrong, or is this a known bug?

Just realized a typo in the ‘mouseMove’ description also, when selecting the event handler type. It says, ‘… The mouse button was moved to the location of X…’. I don’t think the word ‘button’ is supposed to be there, or it’s supposed to be ‘cursor’ instead. :stuck_out_tongue: Damn typos!

Just found something else weird that I need confirmation on. Create a new web application, and add a palette dialog to a webpage (could happen on other controls, but haven’t tested). Debug the application. The dialog only moves if your mouse is holding down the button over the title bar. Now, go back to the web application and add the event handler ‘mouseMove’ to the palette dialog. You don’t have to put anything in it. Just add it. Now run the application again. This time, the dialog moves regardless if you’re initiating the move by holding down the mouse button within the title bar or the entire dialog itself.

MouseMove is really a horrible event to implement in a web app. Generates a lot of traffic. Do you really need it? Or are you at least confined to a LAN?

Definitely don’t need it, and likely now don’t want it with all the issues I’ve come across with it. What I do want is something like a palette dialog, but without the proprietary titlebar. I want a floating container/window within my webpage (much like an MDI window on the desktop w/ child windows). I want to be able to customize the titlebar. The only way I know how (because of inexperience with the web side of things) is to use a canvas as the titlebar, and add the handling of moving/closing the window with mouse driven events. Any other suggestions would be appreciated…

Have you tried using a container control for your palette? You can set the z-index to have it appear above all other content.

Brock,

I actually got what I needed using a palette dialog. For my one app that I needed this solution for, I had to go into the core framework files and edit the CSS for that component. Not the recommended solution, but it worked.