home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!vtserf!creatures!csgrad.cs.vt.edu!ramakris
- From: ramakris@csgrad.cs.vt.edu (S.Ramakrishnan)
- Newsgroups: comp.windows.x.motif
- Subject: Re: How to gray out Text widgets
- Message-ID: <3980@creatures.cs.vt.edu>
- Date: 4 Jan 93 23:29:50 GMT
- References: <1993Jan4.193412.4644@ornl.gov>
- Sender: usenet@creatures.cs.vt.edu
- Organization: VPI&SU Computer Science Department, Blacksburg, VA
- Lines: 22
-
- In article <1993Jan4.193412.4644@ornl.gov> jxt@stc06.ctd.ornl.gov (TOLLIVER J S) writes:
-
- >How does one gray-out an insenstive Text widget?
-
- Using Motif 1.2+ ? Then just set XmNsensitive to False. 1.2+ support
- insensitive visuals for Text and lists.
-
- >Do I really have to go to the trouble of changing the foreground and background
- >colors myself?
-
- If you're using 1.2-, yes.
-
- >If so, is there anyway to get at the algorithm used to choose
- >grayed-out colors for other widgets -- Labels, for instance?
-
- You can use coloredit (export.lcs.mit.edu) to examine the rgb/hsv/cmy values of the
- 'gray' of the labels and use the same for text greying.
-
- >Johnny Tolliver
-
- ---
- S Ramakrishnan, CS Dept, McBryde Hall, VaTech
-