Path: utzoo!attcan!uunet!cs.utexas.edu!csd4.milw.wisc.edu!mailrus!bbn!gatech!bloom-beacon!ANTARES.MCS.ANL.GOV!fineberg From: fineberg@ANTARES.MCS.ANL.GOV Newsgroups: comp.windows.x Subject: Label Widgets Message-ID: <8906261827.AA02660@ogrilla.mcs.anl.gov> Date: 26 Jun 89 18:27:28 GMT Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 28 I am using the Athena widgets under X11 for a tool that displaysa graphical representation of memeory access patterns on a shared memory system. The problem is that when I try to change label widgets when graphics are being displayed the labels simply disappear from the screen. If no graphics are being displayed, there is no problem. This does not make sense to me because the code being used to change labels is the same whether graphics are being used or not. My code for changing labels is as follows: Arg args[1]; XtUnmanageChild(item); args[0].name = XtNlabel; args[0].value = (XtArgVal) string; XtSetValues(item, args, XtNumber(args)); XtMapWidget(item); XtManageChild(item); Also, the graphics being drawn are just rectangles and are done with this code: XSetForeground(display, gc, my_color_map[color]); XFillRectangle(display, surface, gc, x1, y1, x2, y2); if (x_batch_off) XFlush(display); I would appreciate any help, Sam Fineberg fineberg@mcs.anl.gov