[comp.windows.x] bitmaps in simpleMenus

jimg@zeno.gso.uri.edu (James Gallagher) (11/30/90)

I am writting an X client that uses a menu (simpleMenu Widget).  In
this menu I some items that are marked with a check mark (the Xlogo16
bitmap). In the callback for a menu item that is to be checked, I do:

    /* from O'Reilly, vol. 4 */
    if (paused)
        XtVaSetValues(w, XtNleftBitmap, None, NULL);
    else
        XtVaSetValues(w, XtNleftBitmap, mark, NULL);

    paused = !paused;

This works just fine. 

However, I also run this code when a <key> event comes along. In this
case, the bitmap is NOT properly set/updated so that the menu
correctly reflects the state of the system. Rather, the bitmap does
not change at all (i.e., if it was visible, it will stay visible even
when it should be invisible).

Does anyone know why this is happening? Suggestions?

Thanks in advance for help.

Please post to me an I will summarize.

James Gallagher
jimg@zeno.gso.uri.edu
-- 
James Gallagher
jimg@zeno.gso.uri.edu