by cncdrive » Wed Nov 29, 2017 10:55 am
It is currently not possible to place a toolpath viewer on a macro Form.
The number of toolpath views which can be displayed one time is also limited to 1 max.
This is because now the toolpath viewer is a totally independent OpenGL control.
It would be possible to overcome this limitation if we were using the same OpenGL control and render the toolpath to a memory image via a framebuffer.
The issue with that and why we did not do that is because it requires OpenGL 2.0 and currently the UCCNC requires OpenGL 1.3 only.
Using OpenGL 2.0 functions would create a requirement for the user to have a graphics card with OpenGL 2.0 or higher.
OpenGL 2.0 is also old enough, but our experience that people often want to use old computers and if we use OpenGL 2.0 functions then 15 years old graphics cards would not more work.
Maybe a few years later when mostly all of those old PCs die out then we can upgrade to a higher OpenGL version, but for now I think it is better to keep it on the 1.3 version to keep the highest possible soft-hardware compatibility.
Another way would be to allow the user to create more instances of the toolpath viewer control, but that could easily become a resource hog, so I don't think it is a good idea.