SharpDevelop Community

Get your problems solved!
Welcome to SharpDevelop Community Sign in | Join | Help
in Search

Minor Horizontal Ruler bug in # Text Editor Control, easy fix

Last post 10-16-2006 9:46 PM by DanielGrunwald. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 10-16-2006 4:25 PM

    Minor Horizontal Ruler bug in # Text Editor Control, easy fix

    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

     

    Filed under: ,
  • 10-16-2006 9:46 PM In reply to

    Re: Minor Horizontal Ruler bug in # Text Editor Control, easy fix

    Fixed in revision 1910.
    Daniel Grunwald
Page 1 of 1 (2 items)
Powered by Community Server (Commercial Edition), by Telligent Systems
Don't contact us via this (fleischfalle@alphasierrapapa.com) email address.