Unplanned
Last Updated: 29 Oct 2024 13:05 by Connor
Created by: Connor
Comments: 0
Category: MessageBox
Type: Feature Request
0
By default, when adding buttons they are right aligned. It would be great if button can be centered or left aligned according to client's needs.
Unplanned
Last Updated: 02 Jul 2024 12:18 by ADMIN

In the above image, the height of the control is not calculated correctly in the Windows 11 theme. In addition, the Details arrow button overlaps the text.

 

Completed
Last Updated: 01 Nov 2022 11:44 by ADMIN
Release R3 2022 SP2
In this case, the RadMessageBox control is open on a monitor with 100% scaling and close on a monitor with 150%. When the control appears again, the image is not scaled correctly.
Completed
Last Updated: 23 Sep 2022 13:07 by ADMIN
Release R3 2022

If you use the following code snippet, once you click one of the buttons, immediately pressing the Spacebar will close the message as if the button was clicked:

        private void radButton1_Click(object sender, EventArgs e)
        {
            RadMessageBox.Show("Test", "Caption", MessageBoxButtons.OK);
        }

        private void button1_Click(object sender, EventArgs e)
        {
            MessageBox.Show("Test", "Caption", MessageBoxButtons.OK);
        }

However, if you switch to the following approach, once you click one of the buttons, immediately pressing the Spacebar will close the standard MS MessageBox as if the button was clicked, but the RadMessageBox wouldn't be closed because the message doesn't have focus. 

        private void radButton1_Click(object sender, EventArgs e)
        {
            RadMessageBox.Show(this, "Test", "Deployment Result", MessageBoxButtons.OK, RadMessageIcon.Info); 
        }

        private void button1_Click(object sender, EventArgs e)
        {
            MessageBox.Show(this, "Test", "Deployment Result", MessageBoxButtons.OK, MessageBoxIcon.Information);
        }

No matter how the RadMessageBox is shown, it is expected to have focus to the message button by default.

Workaround:

            this.TopMost = true;
            RadMessageBox.Show(this, "Test", "Deployment Result", MessageBoxButtons.OK, RadMessageIcon.Info); 

Completed
Last Updated: 08 Aug 2022 10:24 by ADMIN
Release R3 2022 (LIB 2022.2.808)

Follow the code:

    internal static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            RadControl.EnableRadAutoScale = true;
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);


            string text = "Are you sure you want to exit?";
            string caption = "Application";
            RadMessageIcon icon = RadMessageIcon.Question;
            RadMessageBox.Show(text, caption, MessageBoxButtons.YesNo, icon);

            RadMessageBox.Show(text, caption, MessageBoxButtons.YesNoCancel, icon); 
       

When the application is run on a main monitor with 125% DPI scaling, the following result is observed:

Workaround: 

RadControl.EnableRadAutoScale = false;

Unplanned
Last Updated: 04 May 2022 07:02 by n/a
Unplanned
Last Updated: 19 Jan 2022 13:24 by ADMIN
Created by: alex
Comments: 1
Category: MessageBox
Type: Feature Request
0
it would look like a standard message or a dialog with only an automatic response (which would also be configured) after the timer expires
Unplanned
Last Updated: 13 May 2020 05:42 by ADMIN

Here's the call I'm making. The ApplicationWindow property type is IWin32Window.  It is coming from an application that inherits from CWinApp.  The message is displayed in the upperleft corner of the screen.

RadMessageBox.Show(gtApp.ApplicationWindow, Resources.SpatialQueryNoRecords, app.Name, MessageBoxButtons.OK, RadMessageIcon.Info);

A similar MessageBox call centers on my application just fine:

MessageBox.Show(gtApp.ApplicationWindow, Resources.SpatialQueryNoRecords, app.Name, MessageBoxButtons.OK, MessageBoxIcon.Information); 

Unplanned
Last Updated: 06 Apr 2020 04:37 by ADMIN

Hi Support, 

I just upgrade my winform plugin version from 2018.1.220.40 to 2020.1.218.40. I notice the popup display for RadMessage has shifted from center of the open form to center of the mdiForm (main application).

Below is the code that I used:
RadMessageBox.Show(this, "No Record Found", "Information", System.Windows.Forms.MessageBoxButtons.OK, new System.Drawing.Bitmap(Properties.Resources.info), System.Windows.Forms.MessageBoxDefaultButton.Button1);

Please advice on how can I rectify this issue.

Thank you.

Completed
Last Updated: 19 Mar 2020 14:37 by ADMIN
Release R2 2020 (LIB 2020.1.323)

when set RadMessageBox.UseCompatibleTextRendering = false;

at runtime is generated System.StackOverflowException. 

To workaround:

private void RadForm1_Load(object sender, EventArgs e)
{

    foreach (Control control in RadMessageBox.Instance.Controls)
    {
        RadControl radControl = control as RadControl;
        if (radControl != null)
        {
            radControl.UseCompatibleTextRendering = false;
        }

    }
}