Results 1 to 3 of 3

Thread: Numbering Lines

  1. #1

    Thread Starter
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    Numbering Lines

    I want to number all of the lines in my textbox, this I could do easily, however I have run into 2 problems.

    1. The Rich Textbox expands to the center so it fills the form, this works perfect as is. Now I wanted to put a panel on the left so I could number the lines, but the textbox cannot dock properly and it will go under the panel. The only way I was able to fix this was using a toolbal, however, I'm not exactly sure how I could use a toolbar to display each line since I wanted to put a read only textbox onto it. So how would I use a panel on the left of the textbox but both will dock properly when the program's size is changed?

    2. How can I make the other textbox with the numbers scroll at the same time as the other textbox?

  2. #2
    Frenzied Member dynamic_sysop's Avatar
    Join Date
    Jun 2003
    Location
    Ashby, Leicestershire.
    Posts
    1,142
    why not use a statusbar , like say notepad does when wordwrap is turned off ( View ... StatusBar ) then you could show the line count , also the number of chars ( per line / total ).
    ~
    if a post is resolved, please mark it as [Resolved]
    protected string get_Signature(){return Censored;}
    [vbcode][php] please use code tags when posting any code [/php][/vbcode]

  3. #3

    Thread Starter
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    Originally posted by dynamic_sysop
    why not use a statusbar , like say notepad does when wordwrap is turned off ( View ... StatusBar ) then you could show the line count , also the number of chars ( per line / total ).
    I'm going to do that with a status bar, however I prefer line numbers on the side and find it annoying when programs either don't have numbers at all or they are not on the side.

    Of course they will/are options to disable either or or both.

    Question, is there a function that will get the cursor's current position?
    Last edited by Kasracer; Aug 13th, 2003 at 07:09 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width