home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / windows / x / 20145 < prev    next >
Encoding:
Internet Message Format  |  1992-12-11  |  1.5 KB

  1. Path: sparky!uunet!olivea!spool.mu.edu!umn.edu!lynx!nmsu.edu!dante!mdowell
  2. From: mdowell@dante.nmsu.edu (Mike Dowell)
  3. Newsgroups: comp.windows.x
  4. Subject: Dynamic Colormaps and xview...
  5. Message-ID: <1992Dec11.225251.8245@nmsu.edu>
  6. Date: 11 Dec 92 22:52:51 GMT
  7. Sender: usenet@nmsu.edu
  8. Distribution: usa
  9. Organization: New Mexico State University, Las Cruces, NM
  10. Lines: 46
  11.  
  12.  
  13.  
  14.  
  15. Hello,
  16.  
  17. I am in desperate need of help!!  
  18.  
  19. I am working on a surface plot program and would like to allocate my
  20. own colormap for the window with 250 colors plus my control colors.
  21.  
  22. I would also like to change the palette on the fly, ie. dynamic
  23. colors.  I would like the same effect as the X11 program XColor which
  24. switches to its palette as soon as you focus on it.
  25.  
  26. I can't for the life of me get all the right parameters....
  27.  
  28. I have created a cms with the command:
  29.  
  30.    cms = xv_create(NULL, CMS,
  31.                    CMS_TYPE,        XV_DYNAMIC_CMS,
  32.                    CMS_CONTROL_CMS, FALSE,
  33.                    CMS_SIZE,        NUM_COLORS,
  34.                    NULL);
  35.  
  36. My program has the base window, a control box and a canvas.
  37.  
  38. So the created cms has NULL as the owner...so then I do
  39. an xv_set:
  40.  
  41.    xv_set(Grfbase_window1->canvas1, CMS_NAME, cms, NULL);
  42.  
  43. to associate the cms with my canvas...
  44.  
  45. This does not give me what I want...
  46.  
  47.  
  48. Any help would be greatly appreciated since this is due fairly
  49. shortly...EMAIL would be ideal but any help/reply/comment
  50. would be appreciated!!
  51.  
  52.  
  53. Thanks,
  54.  
  55. Mike Dowell
  56. mdowell@dante.nmsu.edu
  57. mdowell@nmsu.edu
  58.