home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / windows / x / 14470 < prev    next >
Encoding:
Text File  |  1992-07-27  |  962 b   |  28 lines

  1. Newsgroups: comp.windows.x
  2. Path: sparky!uunet!haven.umd.edu!decuac!pa.dec.com!wsl.dec.com!klee
  3. From: klee@wsl.dec.com (Ken Lee)
  4. Subject: Re: Xt/Motif and Visuals
  5. Message-ID: <1992Jul27.233532.5180@PA.dec.com>
  6. Sender: news@PA.dec.com (News)
  7. Reply-To: klee@wsl.dec.com
  8. Organization: DEC Western Software Laboratory
  9. References:  <131608@lll-winken.LLNL.GOV>
  10. Date: Mon, 27 Jul 92 23:35:32 GMT
  11. Lines: 15
  12.  
  13. |> Using the X-toolkit or Motif, is there a way I can create a
  14. |> widget and window and specify the visual being used? 
  15.  
  16. Top level shell widgets have visual and colormap resources.  You can set
  17. these for an entire widget tree.  Note that there may be some bugs in some
  18. versions of Motif that cause this to break.
  19.  
  20. If you want to set visuals for non-shell widgets, you'll have to subclass the
  21. widget to add the functionality to the realize method.
  22.  
  23. -- 
  24. Ken Lee
  25. DEC Western Software Laboratory, Palo Alto, Calif.
  26. Internet: klee@wsl.dec.com
  27. uucp: uunet!decwrl!klee
  28.