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

Home » Public Forums » archive » writing to 2 "windows" in idl?
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
writing to 2 "windows" in idl? [message #5650] Wed, 17 January 1996 00:00
cas is currently offline  cas
Messages: 2
Registered: October 1995
Junior Member
Hi- I'd like to write out character strings to a gif imagee and determine
their lengths (in pixels). I can do this using xyouts and this works for
most of what I want to do. However, now I would like to find the length
of a character string BEFORE I write it out. I tried writing out
in the same color as my image to get the returned length and then writing
it out again in the color I want. This works except that I cover up some
lines on my original plot that I don't want covered. Is there a way to
write to a "fake" device instead?

The relevant parts of my code are:

tvlct,/GET,r,g,b
window, colors=223,xsize=n1,ysize=n2
etc......

device,font='-adobe-helvetica-bold-r-normal--10-100-75-75-p- 60-iso8859-1'
xyouts, x+4, y, string, /device,width=namew ,charsize=1.2,color=44
mmwidth=namew*n1
xyouts, x-mmwidth-4, y, string, /device, width=namew ,charsize=1.2,color=222


thanks.

cathy smith
cas@cdc.noaa.gov
--
cas@cdc.noaa.gov
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: FAQ??
Next Topic: Problems using CURSOR

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

Current Time: Fri Oct 10 06:25:10 PDT 2025

Total time taken to generate the page: 1.03745 seconds