home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / mswindo / programm / misc / 4777 < prev    next >
Encoding:
Text File  |  1993-01-08  |  1.5 KB  |  33 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!paladin.american.edu!howland.reston.ans.net!usc!elroy.jpl.nasa.gov!ucla-cs!ucla-mic!eggneb.astro.ucla.edu!stephen
  3. From: stephen@eggneb.astro.ucla.edu (Stephen Schimpf)
  4. Subject: Displaying text in an edit control
  5. Message-ID: <1993Jan8.175729.20805@mic.ucla.edu>
  6. Keywords: C++, DLL, VB
  7. Nntp-Posting-Host: eggneb.astro.ucla.edu
  8. Organization: UCLA Dept of Astronomy
  9. References: <1993Jan8.224822.20266@XAIT.Xerox.COM>
  10. Date: 8 Jan 93 17:57:29 PST
  11. Lines: 20
  12.  
  13. I am writing an educational application. I use a modeless dialog box to
  14. display instructions to the student. The text I want to display may not
  15. fit in the dialog box, so I thought I would use an edit control with a
  16. vertical scroll bar. I find that when the text is displayed the cr/lf
  17. characters are ignored and are displayed as black blocks.
  18.  
  19. I have examples of edit controls being used to display the contents of
  20. files, so it seems to me that edit controls behave differently if they
  21. are in a window as opposed to a dialog box. For example, I found the
  22. style ES_WANTRETURN (or something like that) is required if you don't
  23. want the default button activated when you press Enter in the dialog box.
  24. I had to type this into the .DLG file as the option is not available
  25. in the Dialog Editor.
  26.  
  27. Does anyone know of a way to make the edit control in a dialog box
  28. display text correctly? Just because it is in a dialog box doesn't
  29. mean I want to use it for input...
  30.  
  31. Stephen
  32.  
  33.