home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / windows / openloo / 4936 < prev    next >
Encoding:
Text File  |  1992-12-30  |  2.0 KB  |  52 lines

  1. Newsgroups: comp.windows.open-look
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!cbnewsm!jmjm
  3. From: jmjm@cbnewsm.cb.att.com (joseph.m.miklewicz)
  4. Subject: XView Toolkit and X Resource DAtabase
  5. Organization: AT&T
  6. Distribution: usa
  7. Date: Wed, 30 Dec 1992 20:44:51 GMT
  8. Message-ID: <1992Dec30.204451.26595@cbnewsm.cb.att.com>
  9. Lines: 41
  10.  
  11. I am running Openwindows 3.0 on SunOs 4.1-GFX on a sun4 platform with X
  12. Windows version 11 release 3. I am pretty new at the X window stuff. I
  13. have an application that was built using DevGuide, the XView toolkit.
  14. What I want to be able to do is to the foreground and background colors
  15. of certain instances of window, specifically a couple of control windows
  16. contained in the application. I also want to be able to set the
  17. foreground and background colors of all of the other windows in the
  18. application to something other than the fg and bg colors of the above
  19. two control windows.
  20.  
  21.  
  22. In the toolkit, I specified the fg and bg colors for each window to
  23. foreground and background, respectively. I can then use:
  24.  
  25.   programname -fg color1 -bg color2
  26.  
  27. to set the fg and bg colors for ALL the windows. I don't seem to be able
  28. to get this to happen by added something like:
  29.  
  30. programname*Foreground: color1
  31. programname*Background: color2
  32.  
  33.     or
  34.  
  35. programname*foreground: color1
  36. programname*background: color2
  37.  
  38. to my resource database with xrdb. Do I need to add something to the
  39. code generated by XView to get it to check the resource database????
  40.  
  41. Also, I'm very confused about what to use to specify a specific Class or
  42. instance, e.g. one control window or one menu button. I just read in the
  43. X Toolkit Intrinsics Programming Manual that XView doesn't use Xt!!??
  44. Does that mean that the only resources I have access to are the ones
  45. listed in Section 6 of the XView Reference Manual? ( Please say it ain't
  46. so!!! ) If not then how do I go about doing so? Any info will be
  47. appreciated. Please respond via e-mail.
  48.  
  49. Thanks
  50. -- 
  51. Joe Miklewicz    908-949-3061    jmjm@hogpa.att.com
  52.