ink recognize  
Author Message
DRoden





PostPosted: Visual Basic Language, ink recognize Top

 

im trying to get the ink to recogznie as soon as the inkedit loses focus or the pen moves off it..

the globalinkedit control has ink in it but when i force it to recognize there is no text...what am i doing wrong

Thanks,

 

Dan

 

Public Sub PopInkEdit(ByVal sender As Object, ByVal e As EventArgs)

AddHandler GlobalInkEdit.MouseLeave, AddressOf disposeInkEdit

AddHandler GlobalInkEdit.LostFocus, AddressOf disposeInkEdit

End Sub

 

Public Sub disposeInkEdit(ByVal sender As Object, ByVal e As EventArgs)

GlobalInkEdit.Recognize()

ctrl1.text = globalinkedit.text

End Sub



Visual Basic9  
 
 
DMan1





PostPosted: Visual Basic Language, ink recognize Top

Are you getting any errors

Are you able to insert a break point to insure you events are firing the handlers



 
 
DRoden





PostPosted: Visual Basic Language, ink recognize Top

yes i stop the form when it fires off the dispose routine...

it goes through without any errors but no text is return even though i write very legible letters...it should at least return something to the controls text..but im obviously misunderstanding the process..


 
 
DMan1





PostPosted: Visual Basic Language, ink recognize Top

Is ctrl1 a textbox on the same form that contains the sub

If it is not then look into getting the correct instance of the form...If it is then check to make sure there is an actual value that is being set(From debug set a watch and then step into the procedure to check its value)



 
 
DRoden





PostPosted: Visual Basic Language, ink recognize Top

the inkedit and the text control exist on the same panel.

i set the inkedit name to the text control name so i know that they are both what they should be...i can try and force the inkedit control to recognize but it doesnt return a result. i can set its reconizer timeout to 1 millisecond then sleep for 5 ms but it still wont convert the ink to text...ponderous.