Hi All,
Using Build 1909.
Using Sharp Text Editor Control. With the Horizontal Ruler turned on, if your turn off the Icon Bar and/or the Line Numbers then the H. Ruler does not redraw to the correct position.
to fix put the following "else" clause into "TextAreaControl.cs", procedure "public void OptionsChanged()" on the "if" statement "if (hRuler == null)":
else hRuler.Invalidate();
Not sure why this needs to be done as I thought the H.Ruler is a child control of the TextAreaControl, however, the TextAreaControl Refresh is called (in textArea.OptionsChanged()) prior to the code that handles the H. Ruler so maybe that's why its not redrawn automatically.
Anyway above fix appears to work, it also seems to fix the H. Ruler from being redrawn incorrectly when another window is dragged over it just after the Icon Bar and/or Line Numbers are turned off or on.
regards,
DAN