home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / fj / maillis / xwindow / 17562 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  2.7 KB

  1. Path: sparky!uunet!stanford.edu!sun-barr!sh.wide!wnoc-tyo-news!scslwide!wsgw!wsservra!daemon
  2. From: david@breslau.ap.mchp.sni.de (David Smyth)
  3. Newsgroups: fj.mail-lists.x-window
  4. Subject: Re: WCL templates are causing us trouble (version 2.3)
  5. Message-ID: <1992Nov17.200421.11093@sm.sony.co.jp>
  6. Date: 17 Nov 92 20:04:21 GMT
  7. Sender: daemon@sm.sony.co.jp (The devil himself)
  8. Distribution: fj
  9. Organization: Siemens-Nixdorf AG
  10. Lines: 63
  11. Approved: michael@sm.sony.co.jp
  12.  
  13. Date: 17 Nov 92 09:15:24 GMT
  14. Message-Id: <1ead7cINN88l@horus.ap.mchp.sni.de>
  15. Newsgroups: comp.windows.x
  16. References: <LARRY.92Nov12165508@shark.mitra.com>
  17. Sender: xpert-request@expo.lcs.mit.edu
  18.  
  19. larry@shark.mitra.com (Larry Williamson) writes:
  20. >
  21. >I have not had any luck getting templates to work properly with Wcl
  22. >versions greater than 2.1. They work okay in version 2.1.
  23. >
  24. >I had not been able to install version 2.2 since our applications
  25. >needed templates and we could never workout just why they stopped
  26. >working. I tried to install 2.3, but no luck!
  27. >
  28. >The Mri test using templates fails as well as our own applications.
  29. >Everything else works as advertised.
  30. >
  31. >Error messages from Mri are always ...
  32. >
  33. >    Wcl Warning: Mri.main.table.15.wcCreate resource missing - need class or constructor
  34. >
  35. >Our environment is a SunOS 4.1.2, X11R5 (fix-12), Motif 1.1.3.
  36.  
  37. It works for me in my test environments, one of which is the same
  38. as yours (Sun,R5,Mot).  The specific Mri test "PerTem" which does
  39. the "Motif Periodic Table" using templates works on all our R5 platforms.
  40.  
  41. R5 is an absolute must of course: Wcl cannot enumerate the database
  42. before R5.
  43.  
  44. Here is what you can try in R5 to better see just what the @&%$ is going
  45. on: you can see all template definition resources using this library
  46. wide resource:
  47.  
  48. *wclTraceTemplateDef:    True
  49.  
  50. You can see the resources which apply to a widget during creation
  51. using the widget instance resources:
  52.  
  53. *foo.wcPreCreateDumpResources:        True
  54. *foo.wcTraceTemplate:            True
  55. *foo.wcPostTemplateDumpResources:    True
  56.  
  57. and once the widget is created, and therefore Wcl can reliably
  58. determine the widget class (in case a constructor is used), you can
  59. use the post-creation instance resource:
  60.  
  61. *foo.wcPostCreateDumpResources:        True
  62.  
  63. This last one shows every resource fetched by the widget instance
  64. from the Xrm database, which are found due to a name match or due
  65. to a widget class name match.
  66.  
  67. These resources are all covered in detail in the Wcl man page.
  68.  
  69. If there is a problem, I want to know!
  70.  
  71. ---------------------------------------------------------------------------
  72. David E. Smyth            David.Smyth@ap.mchp.sni.de
  73. Object/X Researcher        AP 154, Carl-Wery-Str 22, Munich 83 Germany
  74.     Research Grant provided by Esprit Investments Ltd, 
  75.     major sponsor Siemens Nixdorf Informationssysteme AG
  76.