RE: Creating A Text Editor With Line Numbers

  • From: "DaShiell, Jude T. CIV NAVAIR 1490, 1, 26" <jude.dashiell@xxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Wed, 23 Jun 2010 07:41:24 -0400

Why not do a two or three column array?  In the three column case, the
first column would hold line numbers, the second column would hold a
blank and the third column would take the input.  The three column case
shouldn't be necessary though if a blank is concatenated onto the end of
each of those line numbers though.
If you knew assembly language there's an editor with line numbers called
secretry though the developer never built it well enough so it ran
without bugs the line numbers feature in it did work.  Also, that was a
CP/M editor. 

-----Original Message-----
From: programmingblind-bounce@xxxxxxxxxxxxx
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of RicksPlace
Sent: Tuesday, June 22, 2010 18:46
To: programmingblind@xxxxxxxxxxxxx
Subject: Creating A Text Editor With Line Numbers

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

Other related posts: