Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ames!ncar!tank!eecae!cps3xx!cpsvax!dulimart From: dulimart@cpsvax.cps.msu.edu (Hansye S. Dulimarta) Newsgroups: comp.windows.x Subject: Changing label Message-ID: <4337@cps3xx.UUCP> Date: 28 Aug 89 17:21:58 GMT Sender: usenet@cps3xx.UUCP Reply-To: dulimart@cpsvax.UUCP (Hansye S. Dulimarta) Organization: Michigan State University, Computer Science Department Lines: 48 I have a labelwidget which is used to display messages. In order to do this I wrote a procedure : Message (w,msg) Widget w; char *msg; { XtSetArg (args[0],XtNlabel,msg); XtSetValues (w,args,1); } What I intend to do is to display messages from my callback routine like the following: ProcName (w,client_data,call_data) Widget w; caddr_t client_data,call_data; { . . . Message (msg_wget,"message string....."); /* msg #1 */ . . Message (msg_wget,"message string....."); /* msg #2 */ . . . . . Message (msg_wget,"message string....."); /* msg #n */ } 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 ? Thanks a lot. -- Hans. /*---------------------------------------------------------------------------* * Hans Dulimarta (517) 355-3840 * * dulimart@cpsvax.cps.msu.edu * * {....}!tank!eecae!cpsvax!dulimart * * * * "Fear of the LORD is the beginning of knowledge" Proverb 1:7 * *---------------------------------------------------------------------------*/