How to set a ReadOnly background color for the entire editor

SyntaxEditor for Windows Forms Forum

Posted 11 years ago by Michael Dempsey - Sr. Developer, Teradata Corp
Version: 12.1.0302
Avatar

While the user is executing a query I make the entire editor Read Only.

I want to change the background color while the editor is in the ReadOnly state.

I see that I can do this by adding a span indicator - but that seems a waste of resources when the span will be the entire document.

I can also do this by looping through all the Highlighting Styles and changing every Backcolor - but again rather long winded.

Is there a way to assign a ReadOnly Backcolor that is automatically applied?

Alternatively is there  a way to overide all Backcolors without actually setting every style separately.
(I thought that was the idea of the DefaultStyle ... but apparently not.)

Thanks
Mike 

Comments (1)

Answer - Posted 11 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Mike,

We don't have a read-only color that can be set, but there is a disabled color on the renderer (accessible via SyntaxEditor.RendererResolved).  If you run our SDI Editor demo and click the Properties tab, then the Renderer radio button you can see the appearance properties that are available.  Things like TextAreaBackgroundFill can be used to alter the default background.


Actipro Software Support

The latest build of this product (v24.1.0) 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.