home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- 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
- From: stephen@eggneb.astro.ucla.edu (Stephen Schimpf)
- Subject: Displaying text in an edit control
- Message-ID: <1993Jan8.175729.20805@mic.ucla.edu>
- Keywords: C++, DLL, VB
- Nntp-Posting-Host: eggneb.astro.ucla.edu
- Organization: UCLA Dept of Astronomy
- References: <1993Jan8.224822.20266@XAIT.Xerox.COM>
- Date: 8 Jan 93 17:57:29 PST
- Lines: 20
-
- I am writing an educational application. I use a modeless dialog box to
- display instructions to the student. The text I want to display may not
- fit in the dialog box, so I thought I would use an edit control with a
- vertical scroll bar. I find that when the text is displayed the cr/lf
- characters are ignored and are displayed as black blocks.
-
- I have examples of edit controls being used to display the contents of
- files, so it seems to me that edit controls behave differently if they
- are in a window as opposed to a dialog box. For example, I found the
- style ES_WANTRETURN (or something like that) is required if you don't
- want the default button activated when you press Enter in the dialog box.
- I had to type this into the .DLG file as the option is not available
- in the Dialog Editor.
-
- Does anyone know of a way to make the edit control in a dialog box
- display text correctly? Just because it is in a dialog box doesn't
- mean I want to use it for input...
-
- Stephen
-
-