home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!spool.mu.edu!umn.edu!lynx!nmsu.edu!dante!mdowell
- From: mdowell@dante.nmsu.edu (Mike Dowell)
- Newsgroups: comp.windows.x
- Subject: Dynamic Colormaps and xview...
- Message-ID: <1992Dec11.225251.8245@nmsu.edu>
- Date: 11 Dec 92 22:52:51 GMT
- Sender: usenet@nmsu.edu
- Distribution: usa
- Organization: New Mexico State University, Las Cruces, NM
- Lines: 46
-
-
-
-
- Hello,
-
- I am in desperate need of help!!
-
- I am working on a surface plot program and would like to allocate my
- own colormap for the window with 250 colors plus my control colors.
-
- I would also like to change the palette on the fly, ie. dynamic
- colors. I would like the same effect as the X11 program XColor which
- switches to its palette as soon as you focus on it.
-
- I can't for the life of me get all the right parameters....
-
- I have created a cms with the command:
-
- cms = xv_create(NULL, CMS,
- CMS_TYPE, XV_DYNAMIC_CMS,
- CMS_CONTROL_CMS, FALSE,
- CMS_SIZE, NUM_COLORS,
- NULL);
-
- My program has the base window, a control box and a canvas.
-
- So the created cms has NULL as the owner...so then I do
- an xv_set:
-
- xv_set(Grfbase_window1->canvas1, CMS_NAME, cms, NULL);
-
- to associate the cms with my canvas...
-
- This does not give me what I want...
-
-
- Any help would be greatly appreciated since this is due fairly
- shortly...EMAIL would be ideal but any help/reply/comment
- would be appreciated!!
-
-
- Thanks,
-
- Mike Dowell
- mdowell@dante.nmsu.edu
- mdowell@nmsu.edu
-