[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: X window display sizes
David Fanning wrote:
> I don't know. I think the realize-the-upmapped-
> draw-widget method used in GET_SCREEN_SIZE should
> work everywhere. There is even a keyword that will
> enquire of a remote display, I think.
You're right. I could not get the get_screen_size function to work (IDL
5.1), but extracting the relevant parts worked fine:
base = widget_base(display='redback:0', map=0)
draw = widget_draw(base, xsize=10, ysize=10, graphics_level=2)
widget_control, base, /realize
widget_control, draw, get_value=owindow
owindow->getproperty, screen_dimensions=dims
print, dims
1024.00 768.000
obj_destroy, owindow
widget_control, base, /destroy
Cheers,
Liam.
--
Liam E. Gumley
Space Science and Engineering Center, UW-Madison
http://cimss.ssec.wisc.edu/~gumley