By Morgan Ganerod - 3 Years Ago
|
Hi there. I'm playing around with NDrawingView and NDrawingDocument to investigate if I can use those controls in an application im creating. The basic idea is to get a video stream from a microscope camera, equiped with a motorized stage, and display the stream in that control so that I can use the build in GIS functionality to draw lines etc. If some of you have tips or experience with this, I would be happy to learn from you.
Optimistic regards Morgan
|
By Nevron Support - 3 Years Ago
|
Hello,
You can embed a WinForms control that displays the video in a Nevron Diagram shape. Please take a look at the following documentation topic for information how to embed a WinForms control in a Diagram shape:
WinForm Control Host Shape
|
By Morgan Ganerod - 3 Years Ago
|
Hi, thanks for your help. I followed your suggestion and I manage to get it to work. I have some questions. Are there other ways? Is it possible to put that shape under the grid lines in the drawing view? Is it possible to make it static, not moveable when using the hand? Sorry my bad english
Optimistic regards M
|
By Nevron Support - 3 Years Ago
|
Hi,
Regarding your questions:
Are there other ways? No, the WinForms control hosting is the only way to embed a video into the diagram, currently.
Is it possible to put that shape under the grid lines in the drawing view? This is currently not possible.
Is it possible to make it static, not moveable when using the hand? Yes, you can do any of the following:
- Set the DeactiveOnLostFocus property of the control hosting shape to false - see the Document Object Model > Shapes > WinForm Control Hosting example that comes with Nevron Diagram for .NET or
- Set the necessary shape protections - see the following documentation topic: Shape Protections.
|