home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / windows / x / motif / 8348 < prev    next >
Encoding:
Text File  |  1993-01-05  |  1.3 KB  |  44 lines

  1. Newsgroups: comp.windows.x.motif
  2. Path: sparky!uunet!wupost!emory!cs.utk.edu!ornl!jxt
  3. From: jxt@stc06.ctd.ornl.gov (TOLLIVER J S)
  4. Subject: Re: How to gray out Text widgets
  5. Message-ID: <1993Jan5.190841.20675@ornl.gov>
  6. Sender: usenet@ornl.gov (News poster)
  7. Reply-To: jxt@stc06.ctd.ornl.gov (TOLLIVER J S)
  8. Organization: Oak Ridge National Laboratory
  9. References: <1993Jan4.193412.4644@ornl.gov> <3980@creatures.cs.vt.edu>
  10. Date: Tue, 5 Jan 1993 19:08:41 GMT
  11. Lines: 31
  12.  
  13. >  >How does one gray-out an insenstive Text widget?
  14. >
  15. >Using Motif 1.2+ ? Then just set XmNsensitive to False. 1.2+ support
  16. >insensitive visuals for Text and lists.
  17. >
  18.  
  19. Grump. I'm stuck at 1.1.x for a while.
  20.  
  21. >  >Do I really have to go to the trouble of changing the foreground and
  22. >background
  23. >  >colors myself? 
  24. >
  25. >If you're using 1.2-, yes.
  26. >
  27. >  >If so, is there anyway to get at the algorithm used to choose
  28. >  >grayed-out colors for other widgets -- Labels, for instance?
  29. >
  30. >You can use coloredit (export.lcs.mit.edu) to examine the rgb/hsv/cmy
  31. >values of the
  32. >'gray' of the labels and use the same for text greying.
  33. >
  34. Actually, they're not really "grayed". Just overlaid with some sort of
  35. hashed
  36. pattern. Surely there is a work around of some kind. How can I emulate
  37. that
  38. hashed pattern?
  39.  
  40. Thanks,
  41. Johnny Tolliver
  42. Oak Ridge National Laboratory
  43. jxt@ornl.gov
  44.