Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!helios!bcm!etaylor From: etaylor@wilkins.iaims.bcm.tmc.edu (Eric Taylor) Newsgroups: comp.windows.x Subject: Re: How do I block X events? Message-ID: <2778@gazette.bcm.tmc.edu> Date: 16 Nov 90 16:23:00 GMT References: <1990Nov15.190220.20413@csug.rdg.ac.uk> Sender: usenet@bcm.tmc.edu Reply-To: etaylor@wilkins.iaims.bcm.tmc.edu (Eric Taylor) Organization: Baylor College of Medicine, Houston, Tx Lines: 34 Nntp-Posting-Host: wilkins.iaims.bcm.tmc.edu |> |> I am writing an X application using the Motif toolkit (on HP-UX 7.0, if it |> makes a difference). The program has to perform a computationally intensive |> task from time to time, and I'd like to be able to block the user interface |> while this is going on. Ideally I want to |> |> a) Display an hourglass cursor over the whole application |> |> b) Ignore any mouse/keyboard events until the operation is |> complete. |> |> Can anyone enlighten me as to how I could perform either or both of |> these tasks? |> |> ADVthanxANCE |> AndyC First use XDefineCursor for each shell widget widget that is up. Call XFlush Do your computation. Remove all mouse events from the queue (XCheckWindowEvent or something like that). XDefineCursor back to normal. -- Eric Taylor Baylor College of Medicine etaylor@wilkins.bmc.tmc.edu (713) 798-3776