home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / windows / x / motif / 8319 < prev    next >
Encoding:
Internet Message Format  |  1993-01-04  |  1.1 KB

  1. Path: sparky!uunet!vtserf!creatures!csgrad.cs.vt.edu!ramakris
  2. From: ramakris@csgrad.cs.vt.edu (S.Ramakrishnan)
  3. Newsgroups: comp.windows.x.motif
  4. Subject: Re: How to gray out Text widgets
  5. Message-ID: <3980@creatures.cs.vt.edu>
  6. Date: 4 Jan 93 23:29:50 GMT
  7. References: <1993Jan4.193412.4644@ornl.gov>
  8. Sender: usenet@creatures.cs.vt.edu
  9. Organization: VPI&SU Computer Science Department, Blacksburg, VA
  10. Lines: 22
  11.  
  12. In article <1993Jan4.193412.4644@ornl.gov> jxt@stc06.ctd.ornl.gov (TOLLIVER J S) writes:
  13.  
  14.   >How does one gray-out an insenstive Text widget?
  15.  
  16. Using Motif 1.2+ ? Then just set XmNsensitive to False. 1.2+ support
  17. insensitive visuals for Text and lists.
  18.  
  19.   >Do I really have to go to the trouble of changing the foreground and background
  20.   >colors myself? 
  21.  
  22. If you're using 1.2-, yes.
  23.  
  24.   >If so, is there anyway to get at the algorithm used to choose
  25.   >grayed-out colors for other widgets -- Labels, for instance?
  26.  
  27. You can use coloredit (export.lcs.mit.edu) to examine the rgb/hsv/cmy values of the
  28. 'gray' of the labels and use the same for text greying.
  29.  
  30.   >Johnny Tolliver
  31.  
  32. ---
  33. S Ramakrishnan, CS Dept, McBryde Hall, VaTech
  34.