Re: setting xwindow title *after* window is created [message #16891] |
Wed, 25 August 1999 00:00 |
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  |
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
|
|
|
|