Unplanned
Last Updated: 27 Aug 2017 14:22 by mostafa
mostafa
Created on: 21 Jun 2017 07:52
Category: DesktopAlert
Type: Bug Report
1
FIX. RadDesktopAlert - incorrect position in RTL mode
When the ScreenPosition property of RadDesktopAlert is set to BottomRight in RightToLeft mode, it is shown in the center instead of in the right. Please refer to the attached sample project and attached screenshots.

Workaround:

 RadDesktopAlert rdAlert = new RadDesktopAlert();

 private void radButton1_Click(object sender, EventArgs e)
 {
     rdAlert.ContentText = "Sample text";
     rdAlert.ScreenPosition = AlertScreenPosition.BottomRight;
     rdAlert.ShowOptionsButton = false;
   
     rdAlert.FixedSize = new System.Drawing.Size(490, 135);
     rdAlert.Popup.LocationChanged += Popup_LocationChanged; 
     rdAlert.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
     rdAlert.Show();
 }

 Point p = Point.Empty;

 private void Popup_LocationChanged(object sender, EventArgs e)
 {
     DesktopAlertPopup popup = sender as DesktopAlertPopup;
     if (p == Point.Empty)
     {
         p = popup.Location;
     }
     else
     { 
         rdAlert.Popup.LocationChanged -= Popup_LocationChanged;
         rdAlert.Popup.Location = p;
         rdAlert.Popup.LocationChanged += Popup_LocationChanged;
     }
 }

6 comments
mostafa
Posted on: 27 Aug 2017 14:22
Hi @Desislava,
Thank you.
Can I correct this problem myself?
ADMIN
Dess | Tech Support Engineer, Principal
Posted on: 14 Aug 2017 12:51
Hi Mostafa,

I can confirm the issue and added a work around to the description. Thanks a lot for this report.
mostafa
Posted on: 01 Jul 2017 07:13
Does anybody see this problem?
mostafa
Posted on: 21 Jun 2017 07:55
this problem is occuring in your last update 2017 R2 _ 502.
mostafa
Posted on: 21 Jun 2017 07:54
Here is a sample code snippet how to replicate the problem:

RadDesktopAlert rdAlert = new RadDesktopAlert();
rdAlert.ScreenPosition = AlertScreenPosition.BottomRight;
rdAlert.ShowOptionsButton = false;
rdAlert.RightToLeft = System.Windows.Forms.RightToLeft.Yes;
rdAlert.FixedSize = new System.Drawing.Size(490, 135);
mostafa
Posted on: 21 Jun 2017 07:53
RadDesktopAlert is the control i have problem with that.