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