Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Screen Saver - Filling all of multiple screens

Status
Not open for further replies.

djjd47130

Programmer
Nov 1, 2010
480
US
I used Glenn9999's sample of making a screen saver in the FAQ section of this forum - only now that I have something working, how do I get it to fill all my screens? Currently, it only fills the main screen and all the rest of the screens aren't even covered or blackened - you can still see everything else. What I want to do is replicate the same image from the main screen onto all the other screens (and stretch it according to the difference in resolution). By the way, I'm not using the same approach of drawing directly to the form's canvas as this FAQ example explains. Instead I have a large visual control (specifically a needle gauge replicating a clock) stretched across the form. I presume it will involve taking a snapshot of the main form, stretching it to the size of each screen, then drawing it across each screen. But how do I identify all the monitors and their resolution in the first place, let alone maintain drawing to each one?

JD Solutions
 
Upon a little research, TScreen seems to have what you are looking for.

It is not possible for anyone to acknowledge truth when their salary depends on them not doing it.
 
Thank you. What my solution will be is for all screens which are NOT the primary monitor, I will create an additional form (saved in a list) and fill them on each additional screen. Then, I will replicate the main form by drawing them on all other forms as needed. When screen saver ends, it will loop through this list of forms and free them.

JD Solutions
 
By the way, I'm not using the same approach of drawing directly to the form's canvas as this FAQ example explains.

That's generally what most screen savers will do - draw some kind of effect. One thing I didn't research when I was trying to answer the "screen saver" question for myself would be how to hook the form itself into the window box (which will be a question for you no doubt to address at some point).

As you know, the screen saver gets passed the window handle to draw on when it's run in Window Box Mode. I'm sure there's a way to assign the window handle to the form, and size the form to the size of the window box appropriately, but I can't say I've tried it. Hopefully it should be easy enough though.

It is not possible for anyone to acknowledge truth when their salary depends on them not doing it.
 
I kinda did a big whoops, don't know where it went wrong, but when creating a form for each screen (monitor), the thing crashes MISERABLY but I'm sure it's something dumb. Yes that would be nice to have one universal Canvas and draw that canvas onto all forms at the same time, rather than depend on a "main form" and replicate that form on all additional forms. Optimization is a subject I've been trying to follow carefully, but still get lost sometimes such as now.

JD Solutions
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top