home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / windows / intervie / 3207 < prev    next >
Encoding:
Text File  |  1992-11-17  |  1.8 KB  |  42 lines

  1. Newsgroups: comp.windows.interviews
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!concert!gatech!darwin.sura.net!udel!intercon!psinntp!sunic!ugle.unit.no!ugle.unit.no!steinarb
  3. From: steinarb@idt.unit.no (Steinar Bang)
  4. Subject: Re: Window methods
  5. In-Reply-To: linton@marktwain.rad.sgi.com's message of 16 Nov 1992 20:59:42 GMT
  6. Message-ID: <STEINARB.92Nov17092832@topas.idt.unit.no>
  7. Sender: news@ugle.unit.no (NetNews Administrator)
  8. Organization: Norwegian Institute of Technology, Trondheim, Norway
  9. References: <17463@borg.cs.unc.edu> <1e923uINNepd@fido.asd.sgi.com>
  10. Date: 17 Nov 92 09:28:32
  11. Lines: 29
  12.  
  13. >>>>> linton@marktwain.rad.sgi.com (Mark Linton) writes:
  14.  
  15. > In article <17463@borg.cs.unc.edu>, hardarso@smith.cs.unc.edu (Kari Hardarson) writes:
  16.  
  17. >> I have just switched from 3.0 to 3.1beta.  The Window object in
  18. >> InterViews used to support the methods "name" and "icon_name".
  19. >> Now I get compiler errors when I try to compile program that use
  20. >> them.  It seems some structural changes have been made.
  21.  
  22. >> I notice a newcomer method, rep() in Window and I think I'm supposed to
  23. >> ask the Window for it's WindowRep and then call the WindowRep's
  24. >> methods to do the name and icon_name assignments.
  25.  
  26. >> I would appreciate if someone told me the details on how to do it,
  27. >> and I would also like to know the motivation behind this restructuring,
  28. >> and where I can read about it.
  29.  
  30. > You need to set the appropriate attribute on the window's style,
  31. > e.g., window->style()->attribute("iconName", "foo").
  32.  
  33. Won't this conflict with the resource and command line interpretation?
  34. I.e. in that setting this attribute explicitly will override any
  35. attempts to change the name at run-time, either through X resources or
  36. command line arguments.
  37.  
  38. Wouldn't it be more better to set the name in the application resource
  39. default array passed to the Session constructor?
  40.  
  41. - Steinar
  42.