7 Replies Latest reply: Jan 19, 2012 1:51 PM by Stefan Wühl RSS

    Mouse move

    Josh Duenyas

      Hi all

      Is there a function such as OnMouseMove which could show the x,y position of the cursor on a chart?

       

      Thanks

        • Re: Mouse move
          Stefan Wühl

          If you are using the desktop client (not sure about the other clients right now), enabling the status bar will show the current position of your pointer in a chart at the bottom left.

            • Mouse move
              Josh Duenyas

              Thanks

              I would like to show the X and Y values in a chart's Window Title ( = 'X: ' & <valueofx> & '  Y:  ' & <valueofy>) if that is possible.

                • Re: Mouse move
                  Stefan Wühl

                  No, I don't think that's possible, at least I am not aware of any QV function (and I would assume I had remembered this one ;-)

                   

                  I also don't think that you can achieve this with a macro, and if, I wouldn't recommend it.

                   

                  Sorry,

                  Stefan

                   

                  P.S: You are free to create an idea (like a function request) for that here in the forum.

                   

                  P.P.S. I forgot: if you are moving over a data point, you should see the coordinates for that data point in a pop up.

                   

                   

                    • Re: Mouse move
                      Josh Duenyas

                      So the data is there.

                      It could be usful in dynamic maps...

                       

                      Thanks Stefan

                        • Re: Mouse move
                          Deepak Vadithala

                          jduenyas - I agree with Stefan. I haven't seen any inbuilt function & API reference in QV. But you are right, I was very excited when I first saw the X & Y coordinates on the bottom left hand side of the screen. I thought we can acess this data and make some cool things like Hover-Over event. Also, most importantly it would be very useful for a mapping solution in QV. I hope QlikTech does something in future and please let me know if you have posted an idea and I'd mark my vote for the request.

                           

                          I'm attaching one more example for your reference which controls the postion of the SheetObject based on X-pos and Y-pos values in the Caption tab. I understand this is not what you are looking for but I thought I'd share something relevant.

                           

                          Ps : This example uses the macro and it is written by someone else (I think its John). So all credit to the person who created this one.

                           

                          Cheers - DV

                        • Mouse move
                          Josh Duenyas

                          How do I create and idea as you suggested?

                           

                          I think it could be a valuable tool/method/property

                           

                          Thanks