Re: Displaying Multiple Text Lines At Runtime

From: Jase (jshelley_at_spamblock.enersol.com.au)
Date: 02/19/04


Date: Thu, 19 Feb 2004 17:01:56 +1100


"Jagadeesh VN" <jagadeeshvn@hotmail.com> wrote in message
news:u3zSjlq9DHA.548@TK2MSFTNGP11.phx.gbl...
[snip]
> 1. In your Status bars, create a new panel for displaying your messages.
[snip]

Dude... It sometimes help to read the original post ;-) This is a dialog app
we're talking about, which has no status bar by default.

>
> "matt" <bonmatt10@cs.com> wrote in message
> news:c2838b8f.0402181814.4501633e@posting.google.com...
> > I need to display various text messages in my dialog app, and they
> > change during the application. There will be multiple lines of text
> > in one rectangular area.
> >
> > In order to handle that and format it well, should I not use the edit
> > box with an attached CStatic variable? Should I just use text out
> > with coordinates and maybe draw a rectangular area instead of using a
> > control?
> >
> > Thanks,
> >
> > Matt
>

The easiest way is to use a static control attached to a CString variable.
Make sure the "No Wrap" style is NOT SET, and possibly use the "Sunken"
style for visual effect. Assign the message to the variable, and call
UpdateData(FALSE).

It's only being pedantic, but if you use an edit control, even if you set it
to read-only, the "I" cursor will still be shown when the mouse moves over
it.



Relevant Pages

  • Re: Displaying Multiple Text Lines At Runtime
    ... In your Status bars, create a new panel for displaying your messages. ... Put a static control inside your view, ... > in one rectangular area. ...
    (microsoft.public.vc.mfc)
  • Re: VU meters on LCD
    ... snip ... ... >> Now the issue is the bars and very jumpy, ... >> I sample the audio every 1/10s and display the bars, ... All he needs is a digital filter. ...
    (comp.arch.embedded)
  • Re: Democrats Need to Vote in Repub Primaries
    ... The Badlands ran into problems last year for requiring ... There's probably less trouble in gay bars than in straight bars, ... Christian, and Obama has never said he was anything but ...
    (soc.retirement)
  • Re: On Error GoTo Handler
    ... The correct time is being displayed on my ... displaying in OE as 12:03 PM. ... header is my spam trap, so I don't check it very often. ...
    (microsoft.public.scripting.vbscript)
  • Re: more cannabis
    ... > from experience the impurities in soap bars aren't other 'brown stuff', ... taste the brown stuff given the quantities you need to add. ...
    (uk.people.support.depression)