comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » whalley@coaps
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
whalley@coaps [message #4060] Thu, 27 April 1995 00:00
legler is currently offline  legler
Messages: 11
Registered: July 1991
Junior Member
J., here is something that might be helpful for "fixing" what happened
yesterday???? David


soc@festival.ed.ac.uk (Stephen O'Connell) writes:

> I am running IDL 3.6 on an ALPHA, under X windows. When using widgets
> IDL arranges the widgets according to the pixel resolution available -
> for example: sometimes a widget with a graphics window like xfont, will
> not show the graphics window unless the window is maximised, and then
> not all the window is seen, but leaving a huge gaping hole in the rest
> of the window. Thi sdepends on the pixel resolution - if you have
> enough pixels, then there is no problem (I have seen this on many
> displays).

> I see the same problem when I write widgets, and so my questios are:
> 1. does anyone have a way of getting the device resolution automatically
> so I can scale my widget applications accordingly?

The GET_SCREEN_SIZE keyword to DEVICE should do what you want to do. For
example, in some of our software we put scroll bars around the entire widget to
make it fit within the screen, if necessary. Here's some sample lines from one
of our routines.

device, get_screen_size = sz
if (sz(0) ge 1280) and (sz(1) ge 1024) then sz(*) = 0
sz = sz < [1280,1024]
base = widget_base(title='CDS Technical Planning - raster definition',$
/column,/frame,x_scroll=sz(0),y_scroll=sz(1))

Note that if the display is large enough then it doesn't put on scroll bars.

> 2. does anyone else consider this a bug - or at least as a colleague
> here put it: "the default action is pretty weird!" - in IDL ?

Yes, I think it's pretty weird too. I don't know why it works that way, but
it's pretty frustrating.

Bill Thompson

--
Dr. David M. Legler
Center for Ocean Atmosphere Prediction Studies
Florida State University | (904) 644-3797 (Voice) 644-4841 (fax)
Room 020 Love Bldg | Email: legler@coaps.fsu.edu
Tallahassee, FL 32306-3041
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Deutsche Umlaute
Next Topic: Re: Spectral estimation in IDL

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:15:53 PDT 2025

Total time taken to generate the page: 0.00477 seconds