• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 334
  • Last Modified:

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?

Cheers.
0
lorddef
Asked:
lorddef
  • 3
  • 2
2 Solutions
 
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.
0
 
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?
0
 
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.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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.
0
 
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.
0
 
AscendedGuardCommented:
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.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now