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

Home » Public Forums » archive » Re: setting xwindow title *after* window is created
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: setting xwindow title *after* window is created [message #16891] Wed, 25 August 1999 00:00
Andy Loughe is currently offline  Andy Loughe
Messages: 174
Registered: November 1995
Senior Member
Olivier ARCHER wrote:
>
> with the window procedure, the title of the xwindow created is 'IDL x',
> where x is then index of the window being created. I can set the title
> with the title keyword, but i can't change it if the window allready
> exist.
> Any ideas ?
>
> --
> Olivier



Don't rightly know, but I can change the title
of my IDL command window (Xterminal) with...

spawn, ("/bin/echo '\033]2;'My Terminal Name'\007\c'")


Please let me know when you figure it out.

--
Andrew F. Loughe | email: afl@cdc.noaa.gov
NOAA-CIRES CDC Mail Code: R/E/CD1 | www :
http://www.cdc.noaa.gov/~afl
325 Broadway | voice: (303)497-6211
Boulder, CO 80303-3328 | fax : (303)497-7013
------------------------------------------------------------ ---------------
"I do not feel obliged to believe that the same God who has endowed us
with
sense, reason, and intellect has intended us to forego their use."
-Galileo
Re: setting xwindow title *after* window is created [message #16896 is a reply to message #16891] Wed, 25 August 1999 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
David Fanning (davidf@dfanning.com) writes:

> Widgets? :-)

Oh, here. This is a program named WWindow. Call it
like this:

WWindow, wtitle, XSize=400, YSize=400
Surface, Dist(40)

When you want to change the title of the window, type
this:

Widget_Control, wtitle, TLB_Set_Title='Something Else'

Cheers,

David

--
PRO WWindow, tlb, XSize=xsize, YSize=ysize, WID=wid, $
XPos=xpos, YPos=ypos

IF N_Elements(xsize) EQ 0 THEN xsize = !D.X_Size
IF N_Elements(ysize) EQ 0 THEN ysize = !D.Y_Size
IF N_Elements(xpos) EQ 0 THEN xpos=100
IF N_Elements(ypos) EQ 0 THEN ypos=100

tlb = Widget_Base(XOffset=xpos, YOffset=ypos)
drawID = Widget_Draw(tlb, XSize=xsize, YSize=ysize)
Widget_Control, tlb, /Realize
Widget_Control, drawID, Get_Value=wid
WSet, wid
END
--

David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: setting xwindow title *after* window is created [message #16897 is a reply to message #16891] Wed, 25 August 1999 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Olivier ARCHER (oarcher@ifremer.fr) writes:

> with the window procedure, the title of the xwindow created is 'IDL x',
> where x is then index of the window being created. I can set the title
> with the title keyword, but i can't change it if the window allready
> exist.
> Any ideas ?

Widgets? :-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: ?Must run program twice for color to work?
Next Topic: setting xwindow title *after* window is created

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

Current Time: Sat Oct 11 09:19:01 PDT 2025

Total time taken to generate the page: 1.69830 seconds