chu@ames.arc.nasa.gov (Susie W. Chu) (04/21/89)
I have used the X11R3 and the Xhp which was patched with Martin Friedmann's xhp.patch.work.tar.Z. I have writen an application that is a display and control panel of a set of parameters. I use the StaticText widgets (one per parameter) as children of a RowCol widget. They display the current values of the parameters with the background color indicating the value is above,in, or below their range. The application have to constantly read the data package from a remote machine over a udp socket and update the display accordingly. This part I used XtAddInput on socket. Besides these, each parameter panel is associated with a popup menu which the user can set/reset the criteria associated with the parameter when the parameter is selected by press the mouse button. Now I have questions: (A) on VAX750 and VaxStation 2000, all run ULRTIX 3.0 (namely the ULTRIX 3.0 server ont the workstation: (1) Can only run on the workstation with DISPLAY="unix:0" or -display "unix:0". But not any other display. The application die at XtInitialize with "X Toolkit Error: Can't Open Display". But I have no problem on running other X11R3 clients. (2) In the Input callback routine, everytime after I read the data package over the udp socket, I use XtSetValues to set XtNstring and XtNbackground. It changed the background color o.k. but not in display the text, somehow it displayed no text and the text altenately. Is it a bug or a feature of XtSetValues? I remembered I read from the news talked about how XtSetValues work differently in Xhp R2 and Xhp R3. Has it related to my problem. How can I make it work right? (B) On sun3/60, run SunOs 4.0: got segmentation fault and core dumped on run. I am not sure I coded the XtAddInput and its input callback routine right. There is no reference in the Xhp doc. and the X Toolkit Intrinsis doc is hard to follow. If somebody can give a copy of sample or point to me the examples in X11R3, I will appreciate very much. If someone is willing to test my program to help me find out what wrong, I will be more than happy to mail you a copy of my programs. Thanks in advance. ---Susie Chu at (415)694-6003 net address: chu@ames.arc.nasa.gov UUCP: {ihnp4,ucbvax,nike,lll-crg}!ames!chu Disclaimer: NASA is in no way responsible for the content of the previous messag I take full and sole responsibility.