[vtk-developers] Double click mouse event win32 only

Clinton Stimpson clinton at elemtech.com
Thu Mar 17 13:22:43 EST 2005



Sebastien BARRE wrote:

> At 3/17/2005 11:41 AM, Mathieu Malaterre wrote:
>
>> Clifton,
>>
>>         I think when you patch classes like 
>> vtkWin32RenderWindowInteractor.cxx you need to do the same thing for 
>> the X11 / Carbon and Cocoa people. Are you planning to ?
>
>
> Just my 2 cents: the Win32 render win interactor has no double-click 
> support yet, but I think it could be a matter of supporting the 
> WM_MBUTTONDBLCLK win32 event, and creating a corresponding VTK event 
> (or use the current button-down event and set RepeatCount to 2 ?).

Here's what I did (if it needs changed -- that's fine):
It gets WM_[L-M-B]BUTTONDBLCLK events, uses the existing button down vtk 
event and set the repeat count to 1.  A repeat of zero (default) is 
single click.

If an observer doesn't care about double clicks, they'll still get the 
second of a double click looking like a single click.

Clint




More information about the vtk-developers mailing list