E
Eric
I need to capture the events for 1. deleting a shape, 2. changing the shape
text, 3. moving a shape and 4. connecting/disconnecting a "line" shape to a
shape's connection point.
My first two events (1 and 2) are being captured. The others (3 and 4) are
not. I thought Mod Shape or Mod Cell would take care of this. Am I doing
this correctly?
**********************************
************SOURCE *************
**********************************
case (short) Visio.VisEventCodes.visEvtDel + (short)
Visio.VisEventCodes.visEvtShape:
System.Windows.Forms.MessageBox.Show("del shape");
break;
case (short) Visio.VisEventCodes.visEvtCodeShapeExitTextEdit:
System.Windows.Forms.MessageBox.Show("TextEdit");
break;
case (short) Visio.VisEventCodes.visEvtMod + (short)
Visio.VisEventCodes.visEvtCell:
System.Windows.Forms.MessageBox.Show("mod cell");
break;
case (short) Visio.VisEventCodes.visEvtMod + (short)
Visio.VisEventCodes.visEvtShape:
System.Windows.Forms.MessageBox.Show("mod shape");
break;
case (unchecked((short) Visio.VisEventCodes.visEvtAdd) + (short)
Visio.VisEventCodes.visEvtConnect):
System.Windows.Forms.MessageBox.Show("add conx");
break;
case (short) Visio.VisEventCodes.visEvtDel + (short)
Visio.VisEventCodes.visEvtConnect:
System.Windows.Forms.MessageBox.Show("del conx");
break;
default:
System.Windows.Forms.MessageBox.Show(eventCode.ToString());
break;
**********************************
**********END SOURCE ***********
**********************************
Thanks,
Eric
text, 3. moving a shape and 4. connecting/disconnecting a "line" shape to a
shape's connection point.
My first two events (1 and 2) are being captured. The others (3 and 4) are
not. I thought Mod Shape or Mod Cell would take care of this. Am I doing
this correctly?
**********************************
************SOURCE *************
**********************************
case (short) Visio.VisEventCodes.visEvtDel + (short)
Visio.VisEventCodes.visEvtShape:
System.Windows.Forms.MessageBox.Show("del shape");
break;
case (short) Visio.VisEventCodes.visEvtCodeShapeExitTextEdit:
System.Windows.Forms.MessageBox.Show("TextEdit");
break;
case (short) Visio.VisEventCodes.visEvtMod + (short)
Visio.VisEventCodes.visEvtCell:
System.Windows.Forms.MessageBox.Show("mod cell");
break;
case (short) Visio.VisEventCodes.visEvtMod + (short)
Visio.VisEventCodes.visEvtShape:
System.Windows.Forms.MessageBox.Show("mod shape");
break;
case (unchecked((short) Visio.VisEventCodes.visEvtAdd) + (short)
Visio.VisEventCodes.visEvtConnect):
System.Windows.Forms.MessageBox.Show("add conx");
break;
case (short) Visio.VisEventCodes.visEvtDel + (short)
Visio.VisEventCodes.visEvtConnect:
System.Windows.Forms.MessageBox.Show("del conx");
break;
default:
System.Windows.Forms.MessageBox.Show(eventCode.ToString());
break;
**********************************
**********END SOURCE ***********
**********************************
Thanks,
Eric