Thread: How can I extend the text size limit of TMemo from C++ Builder?

  1. #1
    Unregistered
    Guest

    Lightbulb How can I extend the text size limit of TMemo from C++ Builder?

    The limit is 64k, as we all know. How can I extend the limit? I did it in another Basic dialect, but I don't know how in C++. Please help if possible.

  2. #2
    Code Monkey Davros's Avatar
    Join Date
    Jun 2002
    Posts
    812
    Personally I use TRichEdit instead of TMemo. There is no problem with going up to 1MB with TRichEdit. Never found a way to exceed 1MB though.

  3. #3
    Unregistered
    Guest

    Lightbulb

    You see, I'm making a notepad clone, so I want to stay true to it by using a memo component. I don't like richedit because you need a specific dll for each version. Plus, 1MB is still not enough. Thanks for replying anyway.

  4. #4
    Unregistered
    Guest
    Do not suppose. It is only a kind of editbox and system defined size is 64K. Did you see any instance? If any let me know please.

  5. #5
    DT
    Guest

    Lightbulb

    Here is a way to set the text size limit in RichEdit, and that is to use the SendMessage to send a message to the EM_LIMITTEXT.

  6. #6
    Code Monkey Davros's Avatar
    Join Date
    Jun 2002
    Posts
    812
    >Here is a way to set the text size limit in RichEdit, and that is to use the SendMessage to send a message to the EM_LIMITTEXT.

    I tried that approach. However, I found that the size limit is automatically set back 1MB on (many) subsequent calls to the TRichEdit edit component. Could never figure out how to get around that.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. hi need help with credit limit program
    By vaio256 in forum C++ Programming
    Replies: 4
    Last Post: 04-01-2003, 12:23 AM
  2. Tab Controls - API
    By -KEN- in forum Windows Programming
    Replies: 7
    Last Post: 06-02-2002, 09:44 AM
  3. Validating the contents of a char buffer
    By mattz in forum C Programming
    Replies: 3
    Last Post: 12-09-2001, 06:21 PM
  4. Outputting String arrays in windows
    By Xterria in forum Game Programming
    Replies: 11
    Last Post: 11-13-2001, 07:35 PM
  5. Text size
    By morbuz in forum Windows Programming
    Replies: 2
    Last Post: 10-21-2001, 11:54 PM