[vtk-developers] wxVTKRenderWindowInteractor + vtkBoxWidget
Charl P. Botha
c.p.botha at ewi.tudelft.nl
Wed Aug 6 10:57:54 EDT 2003
On Wed, 2003-08-06 at 15:58, Mathieu Malaterre wrote:
> I wanted to use a vtkBoxWidget with a wxVTKRWI. But I failed to make it
> appear.
> So I dig in a bit, I found that when I press 'i', in fact
> this->Interactor->GetKeyCode() is actually 'I'
> thus this test fails :
>
> void vtkInteractorObserver::OnChar()
> {
> ...
> if (this->Interactor->GetKeyCode() == this->KeyPressActivationValue)
> ...
> }
>
> Could someone put some light on it, why does my 'i' become a capital 'I' ??
>
> Thanks,
> mathieu
> Ps: An easy fix could be the use of 'tolower', which is defined in <ctype.h>
Then you still wouldn't know why it was being capitalised. :) The
reason for the capitalisation was the use of EVT_KEY_DOWN in the
wxPython RWIs. I've changed both of these to EVT_CHAR events and
committed to the CVS repository.
I've tested these and they seem to be fine.
Thanks,
Charl
--
charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/
More information about the vtk-developers
mailing list