Completed
Last Updated: 02 Feb 2023 09:38 by ADMIN
Release R1 2023
Created by: Joerg
Comments: 0
Category: SyntaxEditor
Type: Feature Request
10
Add ability to disable horizontal scrollbar and enable word wrapping - fixed width of editor and if the word cannot fit - it is moved to next line.
Completed
Last Updated: 15 Feb 2021 10:26 by ADMIN
Release R1 2021 SP2
Created by: Iprel
Comments: 2
Category: SyntaxEditor
Type: Feature Request
0
How can I hide line numbers?
Completed
Last Updated: 11 Jan 2021 10:25 by ADMIN
Release R1 2021

RadSyntaxEditorElement offers the following method: public CaretPosition GetPositionFromPoint(System.Drawing.Point point)

However, it doesn't return the correct CaretPosition as it requires to transform the System.Drawing.Point first:

        private void MySyntaxEditor1_MouseDown(object sender, MouseEventArgs e)
        {  
            CaretPosition pos = mySyntaxEditor1.SyntaxEditorElement.GetPositionFromPoint(GetPosition(e, mySyntaxEditor1.SyntaxEditorElement.EditorPresenter)); 
            CaretPosition start = new CaretPosition(pos);
            start.MoveToCurrentWordStart();
            CaretPosition end = new CaretPosition(pos);
            end.MoveToCurrentWordEnd();
            mySyntaxEditor1.SyntaxEditorElement.Selection.Select(start, end);
        }

 public Telerik.WinControls.SyntaxEditor.UI.Point GetPosition(System.Windows.Forms.MouseEventArgs args, Telerik.WinControls.SyntaxEditor.UI.UIElement element)
        {

            System.Drawing.Point screenLocation = mySyntaxEditor1.SyntaxEditorElement.PointToScreen(args.Location);
            System.Drawing.Point point = element.PointFromScreen(screenLocation);
            Telerik.WinControls.Layouts.RadMatrix matrix = element.TotalTransform;
            matrix.Invert();

            return new System.Drawing.PointF(point.X * matrix.ScaleX, point.Y * matrix.ScaleY);
        }

Completed
Last Updated: 30 Dec 2020 14:13 by ADMIN
Release R1 2021
If setting "Allow Scaling" to False, it would be nice it the ZoomComboBox is automatically hidden and the vertical scroll bar fills the space. When Allow Scaling is false, the user can still change the the zoom factor, but nothing happens which is confusing. Although setting SyntaxEditorElement.ZoomComboBox.Visibility to Collapsed does remove the ZoomComboBox, it does not cause the vertical scroll bar to fill the space resulting in slight strange looking UI.
Completed
Last Updated: 06 May 2020 10:40 by ADMIN
Release R2 2020
Created by: Iprel
Comments: 3
Category: SyntaxEditor
Type: Feature Request
1
How can I create a tagger that recognizes strings (text contained in double quotes: "text") and apply a color to it?
Completed
Last Updated: 12 Feb 2020 12:02 by ADMIN
Release R1 2020 SP1

RadSyntaxEditor allows the end-users to select a part of the text and drag the selection to a new position.

Currently, there is no public API that allows you to control whether the drag operation should start, on what target line you are dragging over (and whether you can drop on it) and when you drop the selection.