Bug Report T318608
Visible to All Users

DocumentViewer - DocumentViewer's Cursor property has no effect

created 9 years ago (modified 9 years ago)

DocumentViewer.Cursor seems to have no effect. We need to set the default cursor to Default and AppStarting cursors at certain times, but if the document viewer shows the link cursor or any non-default cursor we do not want to override that. How can we hook into the calculation that determines which cursor is shown?

Answers approved by DevExpress Support

created 9 years ago

We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

    created 9 years ago (modified 9 years ago)

    Hello Joseph,
    It's possible to change the default cursor to a custom one when a user hovers a specific report control. In the XRControl.PreviewMouseMove event handler, provide a custom cursor for the preview control by using the Control.Cursor property. For instance:

    C#
    private void xrLabel_PreviewMouseMove(object sender, PreviewMouseEventArgs e) { e.PreviewControl.Cursor = Cursors.Help; }

    The result will be as follows: see the video.

    If your scenario is different, please clarify it.

    [Posted by Joseph N. Musser II]
    This is what I got. Works well as far as I can tell. https://gist.github.com/jnm2/d9ca8b862ba4e55d9ec2
    It would be nice if this was the behavior by default so people don't have to use the subclass.

      Show previous comments (9)
      DevExpress Support Team 9 years ago

        Hello Joseph,
        We appreciate your research. I am happy to hear that you've found the solution. FYI: I've informed our developers that the DocumentViewer's Cursor property value is not taken into account so they can research this behavior. Thank you for pointing this out.

          Thank you Jannet! You have no idea how much it means to me that DevExpress takes these things seriously.

          DevExpress Support Team 9 years ago

            You are always welcome, Joseph.

            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.