Thanks for the info Robby - dunno how I missed finding those files ... oh wait yes I do - Windows Search - doh!<br><br><div class="gmail_quote">On Thu, May 24, 2012 at 6:32 PM, Robby Findler <span dir="ltr"><<a href="mailto:robby@eecs.northwestern.edu" target="_blank">robby@eecs.northwestern.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I've pretty much no clue how to fix it, but the code you see is in<br>
collects/mred/private/wx/win32/frame.rkt. The display-origin function<br>
(it is called from mred/private/wxtop.rkt).<br>
<br>
hth,<br>
Robby<br>
<div><div class="h5"><br>
On Thu, May 24, 2012 at 7:08 PM, Kieron Hardy <<a href="mailto:kieron.hardy@gmail.com">kieron.hardy@gmail.com</a>> wrote:<br>
> Hi all,<br>
><br>
> On one of my client's laptops (Windows 7), the attached code detects the<br>
> second display monitor (get-display-count returns 2), but prints exactly the<br>
> same values for the location and size of the two displays. i.e. The top-left<br>
> coordinate and size values returned ((0,0) and 1024 x 768) are the same<br>
> for both monitors. This effectively maps the second monitor underneath(?)<br>
> the main monitor, making it inaccessible to Racket.<br>
><br>
> In this particular case the second monitor is a TV connected through the<br>
> laptop's s-video port. Windows itself sees the two displays and is<br>
> configured to extend the desktop over both of them and 'Identify monitors'<br>
> works as expected. At least one other program can see and use the TV without<br>
> problems.<br>
><br>
> Racket has no problems seeing and using a second display monitor on this<br>
> same laptop when that second monitor is a video converter box connected<br>
> through the laptop's VGA port. Also Racket has no problems seeing and using<br>
> a TV as a second display monitor when connected to my (Vista) laptop's HDMI<br>
> port.<br>
><br>
> What can I do to troubleshoot this problem? I have searched the source for<br>
> both 'get-display-left-top-inset' and 'monitor' and only find something<br>
> relevant in .html and .js document files. Where in the source should I be<br>
> looking?<br>
><br>
> Thanks in advance for any help.<br>
><br>
> Cheers,<br>
><br>
> Kieron.<br>
><br>
> ****<br>
><br>
> #lang racket/gui<br>
><br>
> (printf "display-count:~a\n" (get-display-count))<br>
> (printf "display-depth:~a\n" (get-display-depth))<br>
><br>
> (for ([m (in-range 0 (get-display-count))])<br>
> (let-values ([(mx my) (get-display-left-top-inset #f #:monitor m)]<br>
> [(mxwob mywob) (get-display-left-top-inset #t #:monitor m)]<br>
> [(mw mh) (get-display-size #f #:monitor m)]<br>
> [(mwfs mhfs) (get-display-size #t #:monitor m)]<br>
> )<br>
> (printf "monitor:~a (~a ~a) (~a ~a) (~a ~a) (~a ~a)~n" m mx my mxwob<br>
> mywob mw mh mwfs mhfs)<br>
> )<br>
> )<br>
><br>
><br>
</div></div>> ____________________<br>
> Racket Users list:<br>
> <a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br>
><br>
</blockquote></div><br>