home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / windows / x / 16162 < prev    next >
Encoding:
Internet Message Format  |  1992-09-03  |  3.3 KB

  1. Path: sparky!uunet!cis.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!ucbvax!sniap.mchp.sni.de!David.Smyth
  2. From: David.Smyth@sniap.mchp.sni.de (David Smyth)
  3. Newsgroups: comp.windows.x
  4. Subject: Re: Problems while using WCL 2.2
  5. Message-ID: <199209040820.AA16941@ap542.sniap.mchp.sni.de>
  6. Date: 4 Sep 92 16:20:17 GMT
  7. References: <9209012145.AA03538@taarna>
  8. Sender: daemon@ucbvax.BERKELEY.EDU
  9. Lines: 67
  10.  
  11. Wcl 2.3, which is being readied for release at this moment, addresses
  12. the problem with resource file loading.  WcLoadResourceFiles has
  13. been heavily reworked and extensively tested.  The new mecahnism
  14. copes logically with all of these cases:
  15.  
  16. Multi.wclResFiles:      \
  17.         Multi \
  18.         ~/Wcl2/Mri/Multi2 ~/Err ~Err ~root/home/david/Wcl2/Mri/Multi3 \
  19.         ./Multi4 ../Mri/Multi5 SCCS/../Multi6 /home/david/Wcl2/Mri/Multi7 /xx \
  20.         Multi8 Multi9
  21.  
  22. Here is an excerpt from the soon-to-be-posted announcement of Wcl 2.3:
  23.  
  24. ...
  25.  
  26. Resource File Loading Support Improvements:
  27. -------------------------------------------
  28.  
  29. Wcl has supported a command line option and resource specifications
  30. to load resource files for some time now.  However, the algorithm used
  31. to find the files was always rather deficient.
  32.  
  33. Wcl 2.3 now uses a complete mechanism to fully complement the way
  34. Xt loads the initial resource database in XtOpenDisplay().
  35.  
  36.     1.  If the resource file name begins with tilda, then the file
  37.         is looked as a path from a user's home directory (~/foo/bar
  38.         or ~fred/bar etc).  If not found, a warning is given and
  39.         the search stops.
  40.  
  41.     2.  If the resource file name begins with '/' or '.' then the
  42.         file name is used as an absolute path or a relative path
  43.         from the current working directory (./foo or ./foo/bar or
  44.         ../foo/bar or /foo/bar etc).  If not found, a warning is
  45.         given and the search stops.
  46.  
  47.     3.  If the filename can be found as a path from the current
  48.         directory (foo or foo/bar etc), then the search stops here.
  49.         This allows developers to very easily limit searches to the
  50.         local directory, or sub-directories of the local directory.
  51.  
  52.     4.  Otherwise, we look for both a "system" applications default
  53.         file and a "user" app-defaults file.  The first "system" file
  54.         and first "user" file are merged into the resource database
  55.         applicable to the application shell.  The files are
  56.         found using the same algorithm used by R3, R4, or R5 Xt
  57.         (whichever is appropriate).  XFILESEARCHPATH and the
  58.         compiled in path (generally /usr/lib/X11/app-defaults) are
  59.         used to find the "system" file, and XUSERFILESEARCHPATH
  60.         or XAPPLRESDIR or the default ($HOME) are used to find the
  61.         "user" file.
  62.  
  63. The result is that you may have wclResFiles specifications like this:
  64.  
  65. myApp.wclResFiles:      myApp/dialog1 myApp/dialog2 myApp/dialog3
  66.  
  67. and have the files found in subdirectories of /usr/lib/X11/app-defaults
  68. and ~/app-defaults, which makes it easier to manage applications with
  69. large and complex interfaces.
  70.  
  71.  
  72. ------------------------------------------------------------
  73. David E. Smyth              David.Smyth@sniap.mchp.sni.de
  74. Object/X Researcher          david@ap542.uucp
  75. Esprit Research              david%ap542@ztivax.siemens.com
  76. Funding provided by: Siemens Nixdorf Informationssysteme AG
  77.              AP 154, Carl-Wery-Str 22, Munich 83 Germany
  78.