home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / lisp / mcl / 2062 next >
Encoding:
Text File  |  1993-01-21  |  1.9 KB  |  44 lines

  1. Newsgroups: comp.lang.lisp.mcl
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!aplcen.apl.jhu.edu!news
  3. From: gersh@aplpy.jhuapl.edu (John R. Gersh)
  4. Subject: Setting dialog item body color
  5. Message-ID: <1993Jan20.212246.29471@aplcen.apl.jhu.edu>
  6. Keywords: color, check-box, radio-button
  7. Sender: news@aplcen.apl.jhu.edu (USENET News System)
  8. Organization: Johns Hopkins University Applied Physics Lab
  9. Date: Wed, 20 Jan 93 21:22:46 GMT
  10. Lines: 32
  11.  
  12.  
  13.  
  14. How can one set the body color of a check-box or radio-button dialog item?
  15. (For example, if you want it to look reasonable in a dialog with a
  16. background color.)
  17.  
  18. (set-part-color <item> :body <new-color>) or initializing with the
  19. equivalent part-color-list has no effect in this case; no matter what you
  20. do, the item keeps a white body color.
  21.  
  22. I poked around a bit around with ccl::set-control-part-color and
  23. ccl::table-color. It appears that the control color-table is being set
  24. properly, but this doesn't affect the way check-boxes and radio-buttons are
  25. drawn. (Things work just fine in setting text and frame colors.) IM V has a
  26. nice color plate that shows radio buttons and check-boxes with body colors
  27. that match a dialog's background, so it ought to be possible.
  28.  
  29. What gives? Is there a way to do this? (I've worked out an awfullly kludgy
  30. work-around involving a view-draw-contents that paints the dialog-item and
  31. then calls #_TrackControl to redo the text and frame, but this is only
  32. partially effective for radio-buttons, and there _must_ be a better way.)
  33.  
  34. [Note: This question was asked in this forum last summer by someone else.
  35. I've searched the mail archives and checked with the original questioner -
  36. it seems never to have been answered.]
  37.  
  38.  
  39.  
  40. ---------------------------------------------------------------------
  41. John Gersh                                      John_Gersh@jhuapl.edu
  42. The Johns Hopkins University Applied Physics Laboratory
  43. Johns Hopkins Rd., Laurel, MD 20723               (301) 953-5503
  44.