Path: utzoo!mnetor!uunet!husc6!bbn!uwmcsd1!ig!agate!ucbvax!home.csc.ti.COM!Oren From: Oren@home.csc.ti.COM (LaMott Oren) Newsgroups: comp.windows.x Subject: Multiple-Choice menu implementation Message-ID: <2780583915-4265083@SI> Date: 11 Feb 88 16:25:15 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 17 While playing with multiple-choice menu's, it occurred to me that it would be real nice if I could select several items at once by holding the mouse button down and dragging it across several items. I was able to get this effect by issuing an UnGrabPointer request on LeaveNotify events to a button. After doing this I started getting enter/leave notifications for each button as I dragged the mouse across my menu items. I'm trying to avoid messy interactions with the menu-item's parent. While the above scheme works, it isn't very robust. There's a round-trip to the server for each button the mouse is swept over, so its possible for buttons to be skipped by a fast user (or slow client/server) Is there a way to tell the server "don't automatically grab the pointer when a button is pressed"? (I've never understood all those options to GrabPointer...) Does X-Toolkit let you select multiple items with a click-drag-release? If so, what's the implementation strategy?