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 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: pictures without borders, full screen pictures [message #10831] Wed, 18 February 1998 00:00
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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
Re: pictures without borders, full screen pictures [message #10835 is a reply to message #10831] Wed, 18 February 1998 00:00 Go to previous message
a2652099 is currently offline  a2652099
Messages: 10
Registered: August 1996
Junior Member
singh@xraylith.wisc.edu (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?

Under OpenWindows I once used something like

WINDOW, xsize=800, ysize=600, xpos=-10, ypos=dontknow

and it worked, the window covered the whole screen, the borders lay just
outside.

Alex
--
Alex Schuster Wonko@weird.cologne.de PGP Key available
alex@pet.mpin-koeln.mpg.de
Re: pictures without borders, full screen pictures [message #10845 is a reply to message #10831] Mon, 16 February 1998 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Sangeet Singh (singh@xraylith.wisc.edu) writes:

> 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?

You can get rid of the title bar, but you can't get rid of the borders.
A window is, after all, a window and there are rules about windows. One
of which is they have borders. The borders can be quite small. This code
on my Windows NT machine gives me a window that is actually 802 by 602.

Function BigWindow, wid
tlb = Widget_Base(TLB_Frame_Attr=4)
drawID = Widget_Draw(tlb, XSize=800, YSize=600)
Widget_Control, tlb, /Realize
Widget_Control, drawID, Get_Value=wid
WSet, wid
Widget_Control, tlb, TLB_GET_SIZE=thisSize
Print, 'Actual window size: ', thisSize
RETURN, tlb
END

widgetID = BigWindow(wid)
TVScl, Dist(800, 600)
Wait, 5
Widget_Control, widgetID, /Destroy
END

> In other words, if I want to be able to paint the (m,n)-th pixel on my
> display red, can I use IDL to do it?

No. :-)

Cheers,

David

-----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438
Coyote's Guide to IDL Programming: http://www.dfanning.com/
  Switch to threaded view of this topic Create a new topic Submit Reply
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: Fri Oct 10 11:00:09 PDT 2025

Total time taken to generate the page: 1.68294 seconds