SyntaxEdit tabstops in Block selection type

I’m wondering if this is expected behavior:

Using the windows forms SyntaxEdit control with the following:
SyntaxEdit.Lines.TabStops = new int {4};
SyntaxEdit.Lines.UseSpaces = true;

SelectionType.Stream -
Pressing tab advances me to column 4 regardless of where i begin within column 1-3 (i.e. as I expect a tabstop to work)

SelectionType.Block (with multiple rows selected for edit) -
Pressing tab advances me 4 columns (e.g. if I start at column 2 I am advanced to column 6)

This leads me to believe that in Block mode we’re not using tabstops, or at least if the option is available I don’t know where that might be.

Any advice/workaround/etc. here?

Thanks!

Hi Todd,

There is a workaround for this issue:

Regards,
Andrew

Hi Todd,

Thank you for reporting this issue. We have fixed it internally, and the fix will be included in the coming major update.

For now, you can register a different method to handle Tab key, as shown in the workaround above.

Kind regards,
Dmitry

EDIT - Disregard, I didn’t extract the entire fix my first time through!!

Thank you for this! I’m not as well-versed as I should be with this product - in what namespace is CustomSelection defined? I can’t seem to get the workaround on its feet.
We are on version 9.5.8.

Thanks again!

1 Like