CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    May 1999
    Location
    Miami, Florida
    Posts
    242

    how can I include vertical scrolling with a dialog box and how can I insert static without truncatio

    I have a modal dialog box. When I insert static text, I can type
    about 100 characters, after which the compiler will warn me that my
    string size is too long and that it will be truncated. Is it possible to
    insert a really long static text caption, say 2 pages of text?

    Also, under the 'more styles' option, I can insert vertical scrolling, but
    how can I make this take effect. Currently it pops up with my modal
    dialog box, but I can't scroll down to insert or view text in this dialog
    box.

    In the end, I am trying to create a modal help dialog box that has several
    pages of text, but I want the dialog box to be normal size with vertical
    scrolling.

    Any response any one can give me will be greatly appreciated.


  2. #2
    Join Date
    May 1999
    Posts
    116

    Re: how can I include vertical scrolling with a dialog box and how can I insert static without trunc

    Use a read-only multiline edit control. This will support scrolling (instead of having to try and support scrolling in the dialog box).


  3. #3
    Join Date
    May 1999
    Posts
    327

    Re: how can I include vertical scrolling with a dialog box and how can I insert static without trunc

    How can I insert multiple lines of text into the edit box? Currently, if I text

    m_edit1 = "text for line 1 \n
    text for line 2 ";

    I get errors. How do I define a new line?

    Any response you can give me will be greatly appreciated.


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

Featured