Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!pacbell.com!decwrl!mcnc!gatech!prism!gw18 From: gw18@prism.gatech.EDU (Greg Williams) Newsgroups: comp.windows.open-look Subject: Re: List notification occurs on mouse DOWN! Message-ID: <30814@hydra.gatech.EDU> Date: 7 Jun 91 13:30:17 GMT References: Organization: Georgia Institute of Technology Lines: 25 vanMelle@Xerox.com (Bill van Melle) writes: >Using XView 2.0 toolkit on a Sparc under OLWM... >However, selection notification in a Scrolling List occurs on mouse >DOWN. Thus, if I press down the mouse button inside a scrolling list and >wipe up and down the list, my notify proc gets called several times, and I >never have the opportunity to retract my decision. In your Scrolling List notify proc, you could check the event type by using event_is_down(event) and event_is_up(event). They return a 0/1 value if the event is the appropriate type. Thus you can do if (event_is_up(event)) { /* code here */ } In fact you can do something different on event_is_down(event) if you wanted. Thus you can do processing on both the down and up parts of a button press. I believe this will do what you want. -- Greg Williams Georgia Institute of Technology, Atlanta Georgia, 30332 uucp: ...!{decvax,hplabs,ncar,purdue,rutgers}!gatech!prism!gw18 Internet: gw18@prism.gatech.edu