Page 1 of 1

Dual screen

Posted: Wed Sep 14, 2005 3:44 pm
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.

Posted: Thu Sep 15, 2005 12:54 pm
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

Solved

Posted: Thu Sep 15, 2005 1:54 pm
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!