home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / windows / x / 14216 < prev    next >
Encoding:
Internet Message Format  |  1992-07-22  |  1.6 KB

  1. Path: sparky!uunet!mcsun!fuug!demos!kiae!glas!demos!walter.bel!jello.bae.bellcore.com!aw
  2. From: aw@jello.bae.bellcore.com
  3. Newsgroups: comp.windows.x
  4. Date: 18 Jul 92 01:42 MDT
  5. Subject: Re: Changing resources on the fly
  6. Sender: Notesfile to Usenet Gateway <notes@glas.apc.org>
  7. Message-ID: <1992Jul17.214256.8724@walter.bel>
  8. Nf-ID: #N:1992Jul17.214256.8724@walter.bel:-544859360:001:1143
  9. Nf-From: jello.bae.bellcore.com!aw    Jul 18 01:42:00 1992
  10. Lines: 29
  11.  
  12.  
  13. In article <1992Jul14.081127.12984@newshost.anu.edu.au>, Hugh.Fisher@anu.edu.au (Hugh Fisher) writes:
  14. >   How can an X application be notified that its resources have been
  15. >   changed and it should therefore reconfigure itself to match?
  16.  
  17. The OLIT toolkit provides support for this.  It selects for
  18. PropertyNotify on the RESOURCE_MANAGER property (set by xrdb).
  19. Widgets can register callbacks (see OlRegisterDynamicCallback(3))
  20. to be called when this property changes so they can update their
  21. state.
  22.  
  23. >   What I would like to do is have a nice graphical resource editor,
  24. >   which as it works sends protocol requests / ICCCM properties /
  25. >   X events to the application(s) affected, in response to which they
  26. >   change themselves to match the new values
  27.  
  28. All your editor should need to do is pass your edited resources
  29. to xrdb, and OLIT applications will update themselves
  30. appropriately.
  31.  
  32. Andrew
  33.  
  34. _______________________________________________________________________________
  35.  
  36. Andrew Wason                                       Bell Communications Research
  37. aw@bae.bellcore.com                                Piscataway, NJ
  38. bellcore!bae!aw
  39.  
  40.