none
InkPicture Stops accepting pen input RRS feed

  • Question

  • I have an application that uses the InkPicture controls.  From time to time, one or more of these fields will stop accepting pen input from a Wacom Cintiq 12WX until the application is restarted.

    Its happening from Vista to Windows 7 AND across all Wacom driver releases since XP.  Recently the occurrence of this has been increasing when no code changes have been made to the application.  The app is written in Delphi using the Tablet PC controls (InkPicture).  Each time the form is shown on the screen, the following code is called:

     

     

     

    vStrokes := vInk.Ink.Strokes;
    
                  if Assigned(vStrokes) then
    
                  begin
    
                    vInk.Ink.DeleteStrokes(vStrokes);  //Clear any strokes
    
                    vInk.Invalidate; //Redraw
    
                    try
    
                      vInk.InkEnabled := False;//disable ink input
    
                      vInk.SetAllTabletsMode(True); 
    
                      vInk.EditingMode := IOEM_Ink; //reset Editing mode
    
                      vInk.EraserMode := IOERM_StrokeErase; //reset eraser mode
    
                      vInk.InkEnabled := True; //re-enable ink.
    
                    except //Removed
    
                    end;
    
                  end;
    
    

     


    Monday, June 6, 2011 1:36 AM