Re: pictures without borders, full screen pictures [message #10831] |
Wed, 18 February 1998 00:00  |
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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
|
|
|