Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. how can fix number of lines in multiline edit box?

how can fix number of lines in multiline edit box?

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Le rner
    wrote on last edited by
    #1

    Hi all, i m using a multiline edit box and use enter for new line . i want to enter only 10 lines in edit box and each line only have max 320 char. here SetLimitText available but its set the total length of edit box. please help for this. thank in advance.

    C A 2 Replies Last reply
    0
    • L Le rner

      Hi all, i m using a multiline edit box and use enter for new line . i want to enter only 10 lines in edit box and each line only have max 320 char. here SetLimitText available but its set the total length of edit box. please help for this. thank in advance.

      C Offline
      C Offline
      Code o mat
      wrote on last edited by
      #2

      Can't you do this with 10 single line edit boxes placed in a column all limited to 320 characters?

      > The problem with computers is that they do what you tell them to do and not what you want them to do. < > Leela: Fry, you're wasting your life sitting in front of that TV. You need to get out and see the real world. Fry: But this is HDTV. It's got better resolution than the real world <

      1 Reply Last reply
      0
      • L Le rner

        Hi all, i m using a multiline edit box and use enter for new line . i want to enter only 10 lines in edit box and each line only have max 320 char. here SetLimitText available but its set the total length of edit box. please help for this. thank in advance.

        A Offline
        A Offline
        Adam Roderick J
        wrote on last edited by
        #3

        Retrieve the line length using LineLength [^] and set the maximum character length of 10 lines, i.e. CEdit cEdit; // get the Edit control from the dialog.

        cEdit.SetLimitText( 10* cEdit.LineLength );

        Величие не Бога может быть недооценена.

        L 1 Reply Last reply
        0
        • A Adam Roderick J

          Retrieve the line length using LineLength [^] and set the maximum character length of 10 lines, i.e. CEdit cEdit; // get the Edit control from the dialog.

          cEdit.SetLimitText( 10* cEdit.LineLength );

          Величие не Бога может быть недооценена.

          L Offline
          L Offline
          Le rner
          wrote on last edited by
          #4

          how there may each line have diggrent number of character.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups