none
Cursor never Inverted in CursorInRange event handler RRS feed

  • Question

  •  

    I use a Wacom Cintiq tablet on a laptop with windows XP media center edition.

    When I use the pen with MSWord, the eraser side of the pen works.

     

    When I try to get the Inverted status of the pen in my application, it is never inverted.

    The InkCollector is an InkOverlay, it works fine as I can draw strokes, and save and restore them.

    The event handler is called.

     

    I have C++ code that looks like this

     

    HRESULT CWinHMIInkInputWnd::CursorInRange( IInkCursor *Cursor, VARIANT_BOOL NewCursor, VARIANT ButtonsState )

    {

    if ( Cursor )

    {

    VARIANT_BOOL bInverted=VARIANT_FALSE;

    HRESULT hr = Cursor->get_Inverted( &bInverted );

    if ( !FAILED(hr) )

    {

    if ( bInverted )

    ::MessageBox( NULL, "Inverted cursor in range", "Good !", MB_OK );

     

    ..

     

     

    whatever the side of the pen, the inverted status is always FALSE.

     

    any idea ?

     

     

    Monday, March 3, 2008 11:27 AM

All replies

  •  

    Arnaud,

     

    The issue has been referred to internally and I'll get back to you once I have an answer.

     

    Thank you,

    ramaguru.

    Tuesday, March 4, 2008 5:40 PM
  • I'm having the same problem... it seems that it might be that the Wacom tablet is making itself appear like a mouse.  In the event handler the e.Cursor.Inverted is always false, but I also noticed that its name is "Mouse", its id is 1 and its DrawingAttributes are null.  Another point to note is that the Tablet property of the InkOverlay seems to be invalid... examining it throws an exception.
    Friday, February 27, 2009 1:49 PM