Path: utzoo!attcan!uunet!ginosko!husc6!bloom-beacon!EXPO.LCS.MIT.EDU!kit From: kit@EXPO.LCS.MIT.EDU (Chris D. Peterson) Newsgroups: comp.windows.x Subject: Re: Changing label Message-ID: <8908281827.AA07142@expo.lcs.mit.edu> Date: 28 Aug 89 18:27:14 GMT References: <4337@cps3xx.UUCP> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 24 > My problem is : I didn't get message #1 thru #(n-1) on my window, > but only the LAST message (#n). > Could anybody help me out with this problem ? The X toolkit only processes events in XtMainLoop. Even though you have asked the label widget to display a new string the event is not sent to the server until you get into XtMainLoop. A quick fix to the problem is to put an XFlush() call into your client after the XtSetValues() call. This will flush the request to the server immediately. If you do not have backing store active then you may run into problems if your label is obscured, when using this method. NOTE: This method assumes that your label widget is mapped and viewable before you enter the callback proc. If you want to pop up the message label then things get more complicated. Chris D. Peterson MIT X Consortium Net: kit@expo.lcs.mit.edu Phone: (617) 253 - 9608 Address: MIT - Room NE43-213