Is there a way to prevent a region from collapsing?

SyntaxEditor for Windows Forms Forum

Posted 15 years ago by netme
Version: 4.0.0233
Avatar
I need to use regions, but users are not allowed to expand them.
Not with double click or anything else.

I've tried the following:
private void txtExpression_MouseDoubleClick(object sender, MouseEventArgs e)
{
txtExpression.Document.Outlining.RootNode.CollapseDescendants();
}

The problem with this approach is that the user actually sees the region being expanded and collapse.
Is there another way to accomplish that? or maybe a way to tell the control to freeze its painting during the MouseDoubleClick event... ?

Thanks,

Comments (1)

Posted 15 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
No but that is an excellent idea. How ideally would you like this feature implemented?


Actipro Software Support

The latest build of this product (v21.1.1) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.