home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / windows / x / 19492 < prev    next >
Encoding:
Internet Message Format  |  1992-11-23  |  1.8 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!sdd.hp.com!nobody
  2. From: mattb@sdd.hp.com (Matt Bonner)
  3. Newsgroups: comp.windows.x
  4. Subject: Re: changing title bar contents on the fly
  5. Date: 23 Nov 1992 21:45:37 GMT
  6. Organization: Hewlett-Packard, San Diego Division
  7. Lines: 30
  8. Distribution: world
  9. Message-ID: <1erje1INN2cv@hpsdlss3.sdd.hp.com>
  10. References: <By6HE8.CI@agps.lanl.gov>
  11. NNTP-Posting-Host: hpsdlg16.sdd.hp.com
  12. Keywords: XStoreName, XSetIconName
  13.  
  14. In article <By6HE8.CI@agps.lanl.gov>, boggs@agps.lanl.gov (Marsha topgun/ne) writes:
  15. |> 
  16. |>     I am running the olwm.  Say I am running or am planning to run
  17. |>     some application in a window. What I want to do is change the 
  18. |>     title bar and icon label for the window I am currently using.  
  19. |>     I know how to bring up a new window with these changes.
  20. |>     but I want to change them for a currently existing window.
  21. |>     Anyone know?
  22. |> 
  23.  
  24. Well, I've never programmed for olwm, but the Xlib calls that
  25. I've seen used for such things are XStoreName and XSetIconName.
  26. Give them a try and see if they do the job.  There's also 
  27. XFetchName and XGetIconName to retrieve these resources.  I
  28. can't quite tell if you are writing an app, or want to be able
  29. to change the names from the command line, but you can write a 
  30. simple program to call these functions with the names you want 
  31. as arguments to it, or integrate it in with the program you're 
  32. already writing.  Also, for the stock MIT xterms, there are
  33. escape sequences you can echo to stdout that will change the 
  34. title or icon name, but I can't seem to find them at the moment,
  35. anyone out there know?
  36.  
  37. Regards,
  38. Matt
  39. -- 
  40.  
  41. Matt Bonner                  |  Email: mattb@sdd.hp.com
  42. Hewlett-Packard Company      |  Snail: 16399 West Bernardo Drive
  43. Ink-jet Components Division  |         San Diego, CA  92127-1899
  44.