Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!yale!mintaka!spdcc!tauxersvilli!alphalpha!nazgul From: nazgul@alphalpha.com (Kee Hinckley) Newsgroups: comp.windows.x Subject: Re: (none) Message-ID: <1990Dec19.163229.19076@alphalpha.com> Date: 19 Dec 90 16:32:29 GMT References: <9012171804.AA29328@unislc.UUCP> Organization: asi Lines: 26 In article <9012171804.AA29328@unislc.UUCP> ctk@unislc.UUCP (Carol Toomer-Keay) writes: >Help! > >I'm developing a demo using Motif and have run into a >strange problem. I need to create a form containing 2 label widgets. >Then I need to be able to change the background color of >each label in the following manner: > >Change background color of label 1. >Sleep a few seconds If you go to sleep the server is never going to get the request. You could do a flush, but better yet (so that refresh and the like work) keep an external state variable and set up a timeout. Then you'll get called every N seconds and you can then set the button to the next state. -kee -- Alphalpha Software, Inc. | motif-request@alphalpha.com nazgul@alphalpha.com |----------------------------------- 617/646-7703 (voice/fax) | Proline BBS: 617/641-3722 I'm not sure which upsets me more; that people are so unwilling to accept responsibility for their own actions, or that they are so eager to regulate everyone else's.