[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Getting Monitors and Monitor Resolutions?
Lloyd Lim wrote:
>
> On Wednesday 16 January 2002 11:38 pm, Wesley Miaw wrote:
> >Thanks for the info. I guess there's no way to get this information
> > from Tk, so I should look for something similar to multimon.h in the
> > X11 source.
>
> Don't give up on Tk just yet. Various tidbits here and there in the
> man pages suggest that it may be possible.
>
> I haven't found anything searching the usual Tcl resources. I've
> posted a question to comp.lang.tcl.
>
> If no one comes up with an answer in a couple days, then you can have
> fun writing C code for the different operating systems. :)
>
> Lloyd
---
Wesley -
I can think of several things to look at. First, check out the xlib
interface. It should have a call that gets info. I think the Tk winfo
command in tk gets info from that source and from the Window Manager.
If winfo doesn't have what you need, you can probably just define a
Tcl-C proc binding to call the xlib function directly.
Larry
p.s. Also, remember that the DISPLAY variable is set on Unix. Does that
carry the info you need about number of monitors?
--
Professor Lawrence A. Rowe Internet: Rowe@BMRC.Berkeley.EDU
Computer Science Division - EECS Phone: 510-642-5117
University of California, Berkeley Fax: 510-642-5615
Berkeley, CA 94720-1776 URL: http://bmrc.berkeley.edu/~larry