Results 1 to 3 of 3

Thread: Word wrap

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2005
    Posts
    3

    Word wrap

    Good afternoon.

    I have a little problem. I want to create a line length (based on character count) rather than a line width (based on pixel count) word wrapping routine.

    The routine itself is fairly easy, and by the looks of most of your posts here, you guys would be able to knock one up in no time at all.

    However, how would you deal with people entering in their own vbCrLf's? Any word wrap routine needs to leave the user entered ones alone, but delete it's own one. I suppose what I'm asking is is there a recognised method of dealing with paragraphing and user formatting without upsetting a word wrap routine?

    Is this a situation that I have to create my own control in order to achieve this? Am I expecting a textbox to do to much?

  2. #2
    Fanatic Member Comintern's Avatar
    Join Date
    Nov 2004
    Location
    Lincoln, NE
    Posts
    826

    Re: Word wrap

    Quote Originally Posted by _Mark_
    However, how would you deal with people entering in their own vbCrLf's? Any word wrap routine needs to leave the user entered ones alone, but delete it's own one. I suppose what I'm asking is is there a recognised method of dealing with paragraphing and user formatting without upsetting a word wrap routine?
    It seems that all you would have to do is keep the user entered information seperated from the information generated by your routine. IE, user enters information, which gets copied out of the control immediately and parsed by your wrapping routine. The parsed information is written back to the control for display, but you still have the user-entered info. Make sense?

    BTW, welcome to the forums.
    Last edited by Comintern; Mar 29th, 2005 at 10:33 AM. Reason: Clarification

  3. #3

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