Re: Multiple Monitor Support

new topic     » goto parent     » topic index » view thread      » older message » newer message

This is a multi-part message in MIME format.

------=_NextPart_000_0008_01C1BCA0.9CE001C0
	charset="iso-8859-1"

From: Jeremy Self

>Hi, all. I'm really new to Euphoria, being in my first week. I'm trying to
>develop a decently large scale program that projects praise >songs onto a second
>monitor, or whatever may be plugged into the second monitor port. I'm using
>Win32Lib, and the ide. I'm >currently using the Windows api's, with
>GetSystemMetrics, with my index as 78(Virtual Desktop Width) and 80(Number of
>>Monitors)...I'm having quite a time centering my window on that screen, however.
>Perhaps what I need is a better Win API Manual
>(Borland's doesn't have the index numbers required to get different
>results)...but I'd prefer an easier way. Any ideas? And any links >to good API
>manuals? Thanks.

Hello Jeremy,

Welcome to Euphoria!

One of the *old books I have explians the process and
it looks fairly easy to do. I'll translate this to Eu from C++

Meanwhile these are the only API calls needed and you'll need
to set up several call_backs for the enumerated monitors.

here are the API functions:

EnumDisplayMonitors() 
GetMonitorInfo() -> MONITORINFOEX Struct
MonitorFromPoint()
MonitorFromRect()
MonitorFromWindow()

MONITORINFOEX Struct will hold seperate monitor (mutliple struct) info 
also, look into creating a virtual desktop for each enumerated monitor.

I'll whip something up in a day or two and send it for you to try.
I dont use win32lib so I cant help you there.

Euman
euman at bellsouth.net

------=_NextPart_000_0008_01C1BCA0.9CE001C0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: 8bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2712.300" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2><STRONG>From:</STRONG> <A title=xisnota at msn.com 
href="mailto:xisnota at msn.com">Jeremy Self</A></FONT></DIV>
<DIV><STRONG></STRONG>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>&gt;Hi, all. I'm really new to Euphoria, being in 
my first week. I'm trying to develop a decently large scale program that 
projects praise &gt;songs onto a second monitor, or whatever may be plugged into
the second monitor port. I'm using Win32Lib, and the ide. I'm &gt;currently 
using the Windows api's, with GetSystemMetrics, with my index as 78(Virtual 
Desktop Width) and 80(Number of &gt;Monitors)...I'm having quite a time 
centering my window on that screen, however. Perhaps what I need is a better Win
API Manual </FONT></DIV>
<DIV><FONT face=Arial size=2>&gt;(Borland's doesn't have the index numbers 
required to get different results)...but I'd prefer an easier way. Any ideas? 
And any links &gt;to good API manuals? Thanks.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV></FONT></DIV>
<DIV><FONT face=Arial size=2>Hello Jeremy,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>Welcome to Euphoria!</DIV>
<DIV>&nbsp;</DIV></FONT></DIV>
<DIV><FONT face=Arial size=2>One of the *old books I have explians the process 
and</FONT></DIV>
<DIV><FONT face=Arial size=2>it looks fairly easy to do. I'll translate this to 
Eu from C++</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Meanwhile these are the only API calls needed and 
you'll need</FONT></DIV>
<DIV><FONT face=Arial size=2>to set up several call_backs for the enumerated 
monitors.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>here are the API functions:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>EnumDisplayMonitors() </FONT></DIV>
<DIV><FONT face=Arial size=2>GetMonitorInfo() -&gt; MONITORINFOEX 
Struct</FONT></DIV>
<DIV><FONT face=Arial size=2>MonitorFromPoint()</FONT></DIV>
<DIV><FONT face=Arial size=2>MonitorFromRect()</FONT></DIV>
<DIV><FONT face=Arial size=2>MonitorFromWindow()</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>MONITORINFOEX Struct will hold seperate monitor 
(mutliple struct) info </FONT></DIV>
<DIV><FONT face=Arial size=2>also, look into creating a virtual desktop for each
enumerated monitor.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I'll whip something up in a day or two and send 
it&nbsp;for you to try.</FONT></DIV>
<DIV><FONT face=Arial size=2>I dont use win32lib so I cant help you 
there.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV>Euman<BR><A href="mailto:euman at bellsouth.net">euman at
bellsouth.net</A></DIV>
<DIV>&nbsp;</DIV>

------=_NextPart_000_0008_01C1BCA0.9CE001C0--

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu