Unplanned
Last Updated: 02 Jul 2024 12:18 by ADMIN
Peter
Created on: 02 Jul 2024 12:02
Category: MessageBox
Type: Bug Report
0
RadMessageBox: The buttons bottom border is clipped in Windows11

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.

 

1 comment
ADMIN
Dinko | Tech Support Engineer
Posted on: 02 Jul 2024 12:18

Hello Peter,

Thank you for reporting this behavior. As a workaround, we can increase the height of the control and offset the arrow image.

RadMessageBox.Instance.Shown += Instance_Shown;

private void Instance_Shown(object sender, EventArgs e)
{
    RadMessageBox.Instance.Height += TelerikDpiHelper.ScaleInt(10, RadMessageBox.Instance.RootElement.DpiScaleFactor);
    (RadMessageBox.Instance.Controls[5] as MessageBoxDetailsButton).Arrow.PositionOffset = new SizeF(-17,0);
}

Regards,
Dinko | Tech Support Engineer
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.