Dual screen

Windows specific forum
Biggles
New User
New User
Posts: 5
Joined: Fri Jun 17, 2005 9:56 am

Dual screen

Post by Biggles »

I'm searching for a way to open a screen on a second desktop while the 'main' program keeps running at desktop one. With ExamineDesktops() I can get the info about the second screen, but I can't find a way to open a (full)window on it.

The idea is to create a program for presentations with a beamer.
lexvictory
Addict
Addict
Posts: 1027
Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:

Post by lexvictory »

u could possibly use a seccond thread for the full screen bit and use setthreaddesktop_() for the thread, then openscreen() it....
not sure if it would work tho....
on the computer u r testing this on, use this code, then tell me wat it ses (in debug):

Code: Select all

Procedure enumdesktops(deskname.s, lparam.l)
  Debug deskname
EndProcedure 

enumdesktops_(GetProcessWindowStation_(), @enumdesktops(), 0)
it might say "Default" and probably something else

btw if anyone else has a better idea and it would be easier to do, tell us now :lol: :P
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
Biggles
New User
New User
Posts: 5
Joined: Fri Jun 17, 2005 9:56 am

Solved

Post by Biggles »

Hi lexvictory. The code produces "Default" in the debug output... Unfortunately nothing else... But...

I just noticed the post of blueznl about multiple monitors in "Tricks 'n' Tips". The code gives the coordinates of the upper left corner of each desktop as well as the width and height. Using those values I get the results I need.

Thanks!
Post Reply