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

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