walter (Walter Steinemann) (04/25/91)
Dear widget-wizards, My application has a label widget which is used to show the user the current status of the application. Most of the time it works fine, using XtSetArg() and XtSetValues to set the label's labelString to the desired value. The application has a secondary event loop which is waiting for input on a socket, but handling X events if they come in while it is waiting. When input does come in on the socket the status label gets changed (same code as before) then the application returns to its wait loop, but the display does NOT always get updated. Sometimes the new string will flash on the screen, then disappear; other times it just never does appear. I have tried XFlush after the XtSetValues but it doesn't help. I never set the value to the null string. I presume that XtSetValues will generate an expose event for itself, or at least call the widgets expose function which should cause the new value to be displayed. Am I wrong? Do I need to call some other function to force a redraw? Thanks for your help, -- WalteR -- -- ------------------------------------------------------------------------------- Walter R. Steinemann HYPERCUBE, INC. #7-419 Phillip Street Phone: (519) 725-4040 Waterloo, Ontario