Ticket T252294
Visible to All Users

ASPxPopupControl - Implementing as tooltip

created 10 years ago

HI,

Is there a way to make the ASPxPopup act as a Tooltip?

I've already implemented a pseudo-tooltip using the ASPxPopupControl which is shown on a 'mouse move' event.  It works pretty well as when the user points to a particular item in the window - in this case a THREE.JS canvas - some information appears.  The popup appears exactly where it should provided the user arrives at a particular area on the screen coming from the right or bottom.  As the user moves in this direction, I have it so that the ShowWindowAtPos() method updates the position.

Here's the problem … When the user moves from the top or from the left, the pointer is now over the ASPxPopup and so does not now move with the pointer.  Also, the 'mouse move' event is not fired since (understandable) the pointer is now over the ASPxPopup.

Is there a way that the ASPxPopup can be made to 'follow' the pointer so that the top left corner is always at the tip of the pointer?

Best,

Alex.

Answers approved by DevExpress Support

created 10 years ago (modified 10 years ago)

Hi,

Thank you for such a detailed description. Yes, you handle the onmousemove event at the window object level and check the event's target object. If this is not a top-level object (e.g., HTML, FORM), display the popup control at the current mouse location. Attached is a corresponding code example. I hope this information helps.

Thanks,
Alessandro.

    Comments (1)

      Perfect.  That's what I was looking for.
      Best,
      Alex.

      Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

      Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.