|
|
||||||
|
#1
|
|
|
|
|
I have a usercontrol that consists of a class containing one InkEdit control.
It is used as a hosted control in IE to allow inking directly onto webpages. I have hooked the inkEdit's gesture event up to an appropriate handler, and enabled scratchout gestures. when this user control is used on a windows form, the gesture event fires fine. When it is used on a webpage, it fires after the first gesture, but not for any subsequent ones. I have put a MessageBox statement right at the start of the handler, so I know it is not firing rather than an error occuring in it. Why is the behaviour different when used as a hosted control in IE, compared with use on windows form? Adam |
|
|
|
#2
|
|
|
|
|
Hello Adam,
I am not seeing this behavior on my machine. I have included my test code below. Can you post your code? You might also want to enable IEHost debug logging to see if there are any exceptions eaten by IE. Here are the instructions to enable this: http://support.microsoft.com/default...b;en-us;313892 Thanks, Stefan Wick using System; using System.Windows.Forms; using Microsoft.Ink; namespace InkEditGestureTest { public class UserControl1 : UserControl { private Microsoft.Ink.InkEdit inkEdit1; public UserControl1() { inkEdit1 = new InkEdit(); inkEdit1.Dock = DockStyle.Fill; inkEdit1.Gesture += new InkEditGestureEventHandler(this.inkEdit1_Gesture); inkEdit1.Parent = this; inkEdit1.SetGestureStatus(ApplicationGesture.Scrat chout, true); } private void inkEdit1_Gesture(object sender, InkEditGestureEventArgs e) { MessageBox.Show(e.Gestures[0].Id.ToString()); } } } |
|
#3
|
|
|
|
|
Well, in the course of investigating this issue I have found a solution, if
not an explanation. The IEhost log reveal nothing interesting. It appears that using a MessageBox.Show statement (when hosted in IE) does something to the control that stops it working correctly. It will carry on inking and typing, but does not fire anymore gesture events. It doesnt matter if the MessageBox is shown from the gesture event handler or a different event handler. Since I dont usually use MessageBox statements for controls hosted in IE, this is not a real life problem. Adam "Stefan Wick[MS]" wrote: [..] |
|
#4
|
|
|
|
|
Are you using TabletPC Edition 2005 or 2002? Which version of the Tablet PC
SDK are you using to compile your application? Thanks, Stefan Wick |
|
#5
|
|
|
|
|
Tablet PC 2005 OS on client.
SDK 1.7 to compile. Adam "Stefan Wick[MS]" wrote: [..] |
|
|
| Similar Threads | |
| Firing an event whenever a control is added Is there an event which fires whenever a control is added to a ControlCollection? There doesn't seem to be, but I'm wondering if there's a kludge anyone's come up with to... |
|
| Control Event not firing Hi, I've created a webControl with a list of buttons. Each of the buttons has a CommandEventHandler attached but when they are clicked the corresponding postback does not... |
|
| Event firing on control Focus Hi everyone, Just wondering if any one knows whether an event fires when focus switches onto a control. I need to perform some actions when some one clicks on and off a... |
|
| Composite Control - Event not firing in child control Hello: I am experiencing an issue where I have a composite control (TestOuter) composed of more composite (TestInner) controls. When I am seeing is if the TestInner control... |
|
| Firing an Event for a control How can one fire an event programatically for a given control. In another post someone wanted to cause an event in order to make a RichTextBox scroll down. However, the... |
|
|
All times are GMT. The time now is 12:03 PM. | Privacy Policy
|