Approved
Last Updated: 30 Mar 2016 12:56 by ADMIN
ADMIN
Hristo
Created on: 11 Nov 2015 08:41
Category: RichTextEditor
Type: Bug Report
0
FIX. RichTextEditorRibbonBar - if the control is moved on a secondary screen, the InsertSymbolDialog and FindReplaceDialog are shown on the main screen
Workaround: handle the CommandExecuted event and manually adjust the location of these forms
public Form1()
{
    InitializeComponent();

    this.radRichTextEditor1.CommandExecuted += radRichTextEditor1_CommandExecuted;
}

private void radRichTextEditor1_CommandExecuted(object sender, Telerik.WinForms.Documents.RichTextBoxCommands.CommandExecutedEventArgs e)
{
    if (e.Command is ShowInsertSymbolWindowCommand)
    {
        ((InsertSymbolDialog)this.radRichTextEditor1.RichTextBoxElement.InsertSymbolWindow).Location = Screen.FromControl(this).WorkingArea.Location;
    }

    else if (e.Command is ShowFindReplaceDialogCommand)
    {
        ((FindReplaceDialog)this.radRichTextEditor1.RichTextBoxElement.FindReplaceDialog).Location = Screen.FromControl(this).WorkingArea.Location;
    }
}

0 comments