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

Home » Public Forums » archive » Re: pictures without borders, full screen pictures
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: pictures without borders, full screen pictures [message #10831] Wed, 18 February 1998 00:00 Go to previous message
David Foster is currently offline  David Foster
Messages: 341
Registered: January 1996
Senior Member
Sangeet Singh wrote:
>
> I'm running IDL 4.x remotely on a Sun using an xterm emulator on my
> Win 95 machine. IDL and my xterm emulator both agree on my screen
> size (currently 800 x 600). Is it possible for me to use IDL to
> display a 800 x 600 image array so that it will fill up the entire
> screen, without showing any window borders etc.? When I use the
> WINDOW command, the window is off center and I have the title bar
> and window borders to contend with. Can I get rid of the bar and the
> borders for any size image?

Here's one possible solution (I believe):

x_margin = 5 ; Determine these empirically
y_margin = 25

device, get_screen_size=s_size
b = widget_base(xoffset=0, yoffset=0)
d = widget_draw(b, xsize=s_size(0), ysize=s_size(1))
widget_control, b, map=0
widget_control, b, /realize
widget_control, b, tlb_set_xoffset=-x_margin, $
tlb_set_yoffset=-y_margin
widget_control, b, /map

I don't know how you can determine the size of the margins and title
bar that the window system creates for the widget. This information
is not available using WIDGET_CONTROL, WID, /GEOMETRY.

Be aware that if you do this, you will have no way to kill the
widget! Put a "Cancel" button overlaid on the draw widget and
make a simple event handler so you can destroy your widget.

Hope this helps.

Dave


--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
David S. Foster Univ. of California, San Diego
Programmer/Analyst Brain Image Analysis Laboratory
foster@bial1.ucsd.edu Department of Psychiatry
(619) 622-5892 8950 Via La Jolla Drive, Suite 2240
La Jolla, CA 92037
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Pricing (was Re: LINUX version of IDL)
Next Topic: Re: IDL 5.0 (TvRd LoadCt) problems with true colors ???

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

Current Time: Sun Oct 12 10:33:05 PDT 2025

Total time taken to generate the page: 1.68207 seconds