denault@hale.ifa.hawaii.edu (Tony Denault) (07/20/90)
Help. I been trying to create a dynamic color map for an XView application. My base frame contains 4 canvas & a number of panels. However when the mouse cursor move or touches the boaders of the canvas or panels the screen switches back to the default color map. Moving my cursor around the frame cause the screen to flash between the default color map and my dynamic color map. I create the base frame with: Base_frame = (Frame) xv_create( NULL, FRAME, WIN_DYNAMIC_VISUAL, TRUE, NULL); Then I create the cms and apply it to the base frame. cmsdata.type = XV_DYNAMIC_CMS; cmsdata.size = 256; cmsdata.index = 0; cmsdata.rgb_count = 256; cmsdata.red = CM.red; cmsdata.green = CM.green; cmsdata.blue = CM.blue; xv_set( Base_frame, WIN_CMS_NAME, "vf_pal", WIN_CMS_DATA, &cmsdata, FRAME_INHERIT_COLORS, TRUE, NULL); When creating a canvas, I include the following: CANVAS_X_PAINT_WINDOW, TRUE, WIN_CMS_NAME, "vf_pal", WIN_DYNAMIC_VISUAL, TRUE, I don't know what I'm doing wrong. (Actually I don't know what I doing :-[) The XView programming Manual doesn't give any information on the dynamic visual. Also can 2 XView processes share the same CMS. My application consists of 2 Xview program. The user needs to view images displayed on one program while working on the other. Thanks in advance, Tony D. -- /------------------------------------------------------------------------\ | Tony Denault, Institute for Astronomy, | denault@hale.ifa.hawaii.edu | | 2680 Woodlawn Drive, Honolulu, HI 96789 | (808) 956-6097 | \------------------------------------------------------------------------/