I think Rick wants to build this capability in his own .NET-based application. These editors do illustrate that it can be done, though I think they are native C++-based, rather than .NET-based.
Jamal On 6/22/2010 9:19 PM, E.J. Zufelt wrote:
As does notepad++ Everett Zufelt http://zufelt.ca Follow me on Twitter http://twitter.com/ezufelt View my LinkedIn Profile http://www.linkedin.com/in/ezufelt On 2010-06-22, at 9:12 PM, Jay Macarty wrote:Textpad has this option I believe. ----- Original Message ----- From: "Jamal Mazrui" <empower@xxxxxxxxx <mailto:empower@xxxxxxxxx>> To: <programmingblind@xxxxxxxxxxxxx <mailto:programmingblind@xxxxxxxxxxxxx>> Cc: "RicksPlace" <ofbgmail@xxxxxxxxx <mailto:ofbgmail@xxxxxxxxx>> Sent: Tuesday, June 22, 2010 7:00 PM Subject: Re: Creating A Text Editor With Line NumbersIt is easy to make the line number appear on the status bar, but indeed, challenging to make it appear on the same physical line. It may be possible with a skinny RichTextBox to the left of the main one. If it had the same top and bottom coordinates and the same font, then I think a line number in it would be on the same horizontal level as the code in the main RTB to its right. With the screen reader command to read the current line, however, only the text in the control with focus would be read (without special scripting). The key that reads the line containing the mouse pointer, however, may read both the line number and code on that line. Jamal Jamal On 6/22/2010 6:45 PM, RicksPlace wrote:Hi: I have not found much on this subject. Is there some way of building a TextBox or RTB control to have the left side hold line numbers and the right be the input area? Using a ListBox to hold the line numbers next to lines in a TextBox or RTB gets really messy because of diferences in character heights for blank lines from one of the very few articles I have found on this subject. Is there some way to say have a line of length 1000, then limit the input area, hard boundries, to say the right 80 percent of the control so that navigation keys would never go into the left margin but the line number would read with the line swith the SayLine WindowEyes or Jaws commands? This sounds so basic but seems to be quite dificult to find examples of. Rick USA__________ View the list's information and change your settings at //www.freelists.org/list/programmingblind__________ View the list's information and change your settings at //www.freelists.org/list/programmingblind
__________View the list's information and change your settings at //www.freelists.org/list/programmingblind