Re: Max X-window width under OS X/X11 [message #40680] |
Tue, 24 August 2004 19:23 |
Richard French
Messages: 173 Registered: December 2000
|
Senior Member |
|
|
On 8/23/04 4:16 PM, in article k-bowman-DB4D23.15161423082004@news.tamu.edu,
"Kenneth Bowman" <k-bowman@null.tamu.edu> wrote:
> I have a Mac with a 1600 x 1024 display. I want to create a window to
> display an image that is, say, 2000 x 200. (I know that I won't be able
> to view the whole thing at one time.)
If you have two side-by-side monitors, you might think you could make a
window the full width of the two screens, which you WOULD be able to see at
one time. But this doesn't work, either:
IDL> help,/dev
Available Graphics Devices: CGM HP LJ NULL PCL PRINTER PS REGIS TEK X Z
Current graphics device: X
Server: X11.0, The XFree86 Project, Inc, Release 40300000
Display Depth, Size: 24 bits, (2560,1024)
IDL> window,xs=2560,ys=300
IDL> help,/dev
Available Graphics Devices: CGM HP LJ NULL PCL PRINTER PS REGIS TEK X Z
Current graphics device: X
Server: X11.0, The XFree86 Project, Inc, Release 40300000
Display Depth, Size: 24 bits, (2560,1024)
Window Status: ---------------------
id typ( x, y, backing store) id typ( x, y, backing
store)
0: Win(1280, 300, Req from Server)
In fact, the width of the window is dictated by the narrower of the two
screens (in this case, the 'main' screen - a PowerBook G4)
I've not figured out how to get around this. Part of the reason for having
two monitors is to be able to see things that are larger than one screen.
Dick French
|
|
|
Re: Max X-window width under OS X/X11 [message #40694 is a reply to message #40680] |
Mon, 23 August 2004 16:37  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Mark Hadfield writes:
> It's metaphors all the way down, I'm afraid.
Don't ya know!
I've been thinking lately that the people who seem
to struggle most with computer programming are the
ones who struggle most with metaphor. There are days
when it ALL seems metaphorical to me. :-(
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|
Re: Max X-window width under OS X/X11 [message #40695 is a reply to message #40694] |
Mon, 23 August 2004 16:09  |
Mark Hadfield
Messages: 783 Registered: May 1995
|
Senior Member |
|
|
David Fanning wrote:
> Kenneth Bowman writes:
>
>
>> I'm still mildly puzzled about why I can't make a large plain window,
>> but life is too short to dwell on that for long. ;-)
>
>
> I don't know. In some circles not being allowed to create
> a viewable window larger than your display might be considered
> a Good Thing. Save you having to think about the philosophical
> conundrum of where that stuff *goes* when you write it to
> an area that can't be seen, for one thing. :-)
Off the edge of the screen, of course.
It's metaphors all the way down, I'm afraid.
--
Mark Hadfield "Ka puwaha te tai nei, Hoea tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)
|
|
|
Re: Max X-window width under OS X/X11 [message #40696 is a reply to message #40695] |
Mon, 23 August 2004 15:03  |
mperrin+news
Messages: 81 Registered: May 2001
|
Member |
|
|
Kenneth Bowman <k-bowman@null.tamu.edu> wrote:
> I have a Mac with a 1600 x 1024 display. I want to create a window to
> display an image that is, say, 2000 x 200. (I know that I won't be able
> to view the whole thing at one time.)
>
> I find that the widest window I can create is 1541 pixels.
>
> I don't know any reason why this would be an IDL issue. Does anyone
> know if this is a generic X11 issue or an Apple X11 issue? (I thought
> one could create windows larger than the display under X.)
It's definitely an Apple issue. I tried reproducing it on my 15"
Powerbook and found that I could create at most a 1243 pixel wide
window, on my 1280 pixel display. However, adjusting the size of the
Dock changes the size of the maximum allowable window! (Note that my
Dock is vertical, on the right hand side of my screen) The maximum
window size appears to be defined as "the size which will just barely
fit entirely on the screen between the Dock and the other edge of the
monitor".
Quite strange, and almost certainly a bug with Apple X11 in general,
not IDL. I can't create an xterm larger than that size, either.
(But of course all this works perfectly well on my Solaris box...)
- Marshall
|
|
|
Re: Max X-window width under OS X/X11 [message #40697 is a reply to message #40696] |
Mon, 23 August 2004 14:56  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Kenneth Bowman writes:
> I'm still mildly puzzled about why I can't make a large plain window,
> but life is too short to dwell on that for long. ;-)
I don't know. In some circles not being allowed to create
a viewable window larger than your display might be considered
a Good Thing. Save you having to think about the philosophical
conundrum of where that stuff *goes* when you write it to
an area that can't be seen, for one thing. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|
Re: Max X-window width under OS X/X11 [message #40698 is a reply to message #40697] |
Mon, 23 August 2004 14:20  |
K. Bowman
Messages: 330 Registered: May 2000
|
Senior Member |
|
|
In article <cgdm8i$b1q$1@news.doit.wisc.edu>,
Liam Gumley <Liam.Gumley@ssec.wisc.edu_NOSPAM> wrote:
> Can you create a scrolling widget draw window? For example:
>
> base = widget_base()
> draw = widget_draw(base, xsize=2000, ysize=200, $
> x_scroll_size=1500, y_scrolll_size=200)
> widget_control, base, /realize
Hi Liam,
Yes, that does work, and will do what I need to do in this case.
I'm still mildly puzzled about why I can't make a large plain window,
but life is too short to dwell on that for long. ;-)
Thanks! Ken
|
|
|
Re: Max X-window width under OS X/X11 [message #40699 is a reply to message #40698] |
Mon, 23 August 2004 14:06  |
Liam Gumley
Messages: 473 Registered: November 1994
|
Senior Member |
|
|
Kenneth Bowman wrote:
> I have a Mac with a 1600 x 1024 display. I want to create a window to
> display an image that is, say, 2000 x 200. (I know that I won't be able
> to view the whole thing at one time.)
>
> I find that the widest window I can create is 1541 pixels.
>
> I don't know any reason why this would be an IDL issue. Does anyone
> know if this is a generic X11 issue or an Apple X11 issue? (I thought
> one could create windows larger than the display under X.)
[stuff deleted]
Ken,
Can you create a scrolling widget draw window? For example:
base = widget_base()
draw = widget_draw(base, xsize=2000, ysize=200, $
x_scroll_size=1500, y_scrolll_size=200)
widget_control, base, /realize
Cheers,
Liam.
Practical IDL Programming
http://www.gumley.com/
|
|
|