This is a migrated thread and some comments may be shown as answers.

RadMessageBox question - keeping our custom cursor

1 Answer 92 Views
MessageBox
This is a migrated thread and some comments may be shown as answers.
Ofer
Top achievements
Rank 1
Ofer asked on 12 May 2009, 10:54 PM
Hi,

Our main form has a custom cursor that I set with this.Cursor = cusotmCursor;
When I show a RadMessageBox our custom cursor is changed to the default WinForms arrow the cursor.
When I click on the RadMessageBox button and the RadMEssageBox closes, the cursor returns to our custom cursor.

This is very important to us for the evaluatio of the Teletik controls:
How to keep our custom cursor when showing the RadMessageBox?
The cursor must not change.

This is my code - I subclassed the RadMessageBox in my custom class which the application uses.
Is this the recommended way to wrap the RadMessageBox?

I use .Net 3.5 SP1 with VS2008.


Best Regards,
Ofer


using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Telerik.WinControls;
using System.Windows.Forms;

namespace UI.Forms.UserControls
{
    public static class YMessageBox
    {
        public static DialogResult Show(IWin32Window parent, string text, string caption,
            MessageBoxButtons buttons, RadMessageIcon icon, MessageBoxDefaultButton defaultButton)
        {            
            RadMessageBox.SetThemeName("Aqua");

            DialogResult dr = RadMessageBox.Show(parent, text, caption, buttons, icon, defaultButton, RightToLeft.Yes);
            return dr;
        }
    }
}

1 Answer, 1 is accepted

Sort by
0
Martin Vasilev
Telerik team
answered on 15 May 2009, 01:11 PM
Hello Ofer,

Thank you for writing.

I confirm that RadMessageBox changes the cursor to the default one -- it does not support changing the cursor and unfortunately this behavior cannot be changed in the current version. I have logged it as Feature Request and it will be implemented in some of the next releases.

I have updated your Telerik points for bringing our attention to this. Do not hesitate to contact me again if you have other questions.

Sincerely yours,
Martin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
MessageBox
Asked by
Ofer
Top achievements
Rank 1
Answers by
Martin Vasilev
Telerik team
Share this question
or