haluska@jade.jpl.nasa.gov (10/30/90)
Please excuse me if this has been discussed before, but I don't normally have net access, and am borrowing an account for this, so I have no idea if the subjects have come up before. First question: I pop-up a 3 level menu on top of a canvas window, after I make a selection and the menu pops down, up to 3 expose events are generated, depending on menu level. Is there a way to collapse these exposes into one, without using X lib calls to wait on the expose count and building an expose region? I set the WIN_COLLPASE_EXPOSURES flag to TRUE but that doesn't help, since I suspect the menu windows are counted as separate items, and thus the WIN_COLLAPSE_EXPOSURES flag is ignored (Section 5.3 of O'Reilly's XView Programming Manual). Secondly, I create a dynamic CMS which I use to change the color of a couple of panel items on the fly. I set the PANEL_ITEM_COLOR to the CMS index which I'm going to modify, and then change the RGB values to indicate the change of state. The problem is that several other items in the panels also change color, such as the text position indicator on a PANEL_TEXT item or the menu pullright/ pulldown direction indicator, and any other panel item I don't explicitly set the PANEL_ITEM_COLOR on. I'm using the CMS_CONTROL_COLORS stuff, it seems to have something to do with the panel foreground color, which should have a different color index than the variable color I setup. Any ideas? Steve Cook, using someones account, so reply to him and I'll get it. Please email it, since I don't normally get to read the net. Thanks in advance.