Easy way to display text fullscreen.

Hi People,

Although this question is not about a game, I'm posting it here as I'm guessing that you guys will be able to give me a better answer than any of the other channels.

Basically I'm looking to write an app to display text in fullscreen that can then be displayed on a TV through the TV-out port of a graphics card. The purpose is to display system statistics for a whole bunch of machines. All it needs to do is be able to read a text file and then display the data to the screen, and be capable of rotating through a number of screens to show different statuses.

Can anyone give me any pointers? - I'm guessing the best approach is a simple app in C to read the files - but I'm not sure how I'd then go about displaying the text in fullscreen. Perhaps I could make use of some sort of game engine to do the job?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Carl TawnSystems and Integration DeveloperCommented:
You haven't mentioned which language you are using, so this will be a very generic answer.

DirectX or OpenGL is an option, you won't need anything as complex as a game engine though. You can create a fullscreen device and then just draw text to it.

Alternatively, is a full window Windows app an option ? You can switch off all the borders etc so that it looks like its fullscreen, but you wouldn't have the extra complexity of having to figure out DirectX or OpenGL.
lorddefAuthor Commented:
Cheers for the response.

I hadn't specified a language as at the moment I'm open to ideas, although I have already ruled out the idea of a php script and a web browser in fullscreen.

A full window windows app sounds like it'd do the job, I've got visual studio here. Any further pointers on this? or should I go off and swat up myself?
Carl TawnSystems and Integration DeveloperCommented:
Visual Studio 6 or .Net ?

If its .Net, then a sample using C#. Create a new windows application, then in the constructor for the main form add the following:

            this.WindowState = FormWindowState.Maximized;
            this.FormBorderStyle = FormBorderStyle.None;
            this.BackColor = Color.Black;
            this.ControlBox = false;
            this.Text = "";

This will give you a fullscreen borderless black window. You can then use the objects provided in the System.Drawing namespace to draw shapes, write text, etc.
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

lorddefAuthor Commented:
I only have beta versions of both 6 and .Net 2k5, and I'll have a look at this as soon as I get chance.

Is there anyway I could impliment this so I can maximise the window and have it as above, and restore the window to have it with its boarders?

Cheers for the tips.
Carl TawnSystems and Integration DeveloperCommented:
No problem, it just depends on how you want to do it, key combination or button, etc.

Essentially you just need to resize the form and set its FormBorderStyle to something other then None.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
I would suggest using DirectX and C++ to achieve this for two reasons:

1) DirectX has pre-built samples to start projects from, a few of which include text classes to specifically display text across on the screen more easily with definable font, color, etc. Otherwise, you could build a wrapper class around the pre-made text system to make this simpler and more applied to what you need. This also leaves room for expansion later if you feel like playing around with DirectX graphics.

2) This way, you can use C/C++ commands to read in your files as well, which would probably be easiest.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Game Programming

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.