PavelTorgashov / FastColoredTextBox

Fast Colored TextBox for Syntax Highlighting. The text editor component for .NET.
Other
1.21k stars 463 forks source link

Cannot change visible background color of DocumentMap #246

Closed Hexman768 closed 2 years ago

Hexman768 commented 2 years ago

Description

I was trying to set the BackColor property of the DocumentMap control, and the visible background color wasn't changing. There is already a BackColor property, however when I modify that, I only see a small line at the bottom of the control that is painted the color I chose. I'm not sure why this happens, but I can't seem to fix it by setting the BackColor or ForeColor properties.

Hexman768 commented 2 years ago

I was able to see what I was doing wrong. In order to get the DocumentMap to dock with my docking component, I had to wrap it in a new control, so I was setting the background color of the wrapper instead of the actual map. I'm closing this issue!