Page 1 of 1

Drawing Text

PostPosted: May 9, 2004 @ 10:01am
by Guest

PostPosted: May 10, 2004 @ 1:26am
by j.edwards

PostPosted: May 10, 2004 @ 3:27am
by fzammetti

PostPosted: May 10, 2004 @ 5:37am
by BapDude

PostPosted: Jun 9, 2004 @ 5:12pm
by PointOfLight

GAPI and text (PocketFrog?)

PostPosted: Jun 30, 2004 @ 4:13pm
by dxmonger
Gurus

I'm hoping that someone here can help me. I have been toying with an app that uses GAPI. I want to have a region of the screen (a rectangle/window) that contains scrolling text. I don't need to use fancy/bitmapped fonts. Standard system text will do fine.

The C++ GAPI code is stable and basically works as-is. I really need something simple and (if possible) an example.

I see there are various packages out there that may answer some of this (GAPIDraw, Pocketfrog, ...) but these may be overkill. I just want a plain ole window with a scrollbar to post text to... Is there a way to do this? Perhaps display a MFC dialog box over the top of the GAPI app (and have everything still update as expected)?

Ideas? Examples?

PostPosted: Jun 30, 2004 @ 4:28pm
by Conan
It's not quite as simple as you would like however you can use GDI fonts with GAPI applications like PocketFrog (documented by me in my articles).
In the text strings you can use things like /n/r to format text to wrap but most people design their own systems to display help files etc. see
re: GDI fonts.



How you approach this depends on how much text you have and how fast you want it to run.

There's GDI font source here which may help:-