Newsgroups: comp.windows.x Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!cs.rpi.edu!ramabads From: ramabads@cs.rpi.edu (Shiva ) Subject: Re: Multiple Message-ID: <}5==J6{@rpi.edu> Followup-To: poster Keywords: found. Nntp-Posting-Host: cs.rpi.edu Reply-To: ramabads@cs.rpi.edu Organization: Rennselaer Polytechnic Institute, CS Dept. References: Date: 21 Mar 91 21:35:08 GMT Lines: 33 In article , I write: [Tons of Explanations deleted] |> This essentially involves, ignoring all events, till a specific event is |> recieved ( in this case, it would be a Button1PressEvent on my Canvas Widget. ) |> |> AND FINALLY THE QUESTION : |> |> IS there an elegant way of doing this. I have several such buttons, |> and keeping global flags, and checking in every callback is not my idea of |> fun. |> |> I RTFM'd for a while, and found the Xtoolkit functions XtAddGrab() & XtRemoveGrab() to do exactly what I needed. I should spend more time RTM'ing before I post. This posting is to pre-empt numerous postings with the solution. Thanks, again, -shiva -=- Shivkumar Ramabadran (shiva) ramabads@turing.cs.rpi.edu "I once wrote a Lisp program. It wrote back to me." -=-