by IDEAL Software Support » Tue Mar 20, 2007 9:55 pm
You can embed the VPE preview into any window. Just create your MDI window and use the created window as parent for the VPE Control. In addition set VPE.ExternalWindow = false before calling VPE.OpenDoc(), this instructs VPE to embed itself into the supplied parent window.
There are some other things to take care of when the VPE preview is embedded into another window: when the parent window is resized, the VPE window needs to be resized accordingly. Keyboard events need to be forwarded to the preview, which can be achieved by setting the focus to the VPE preview window when your MDI window receives the focus.
A fully working demo is shipped with VPE. The "Precision & Capabilities" demo demonstrates how to use the VPE preview in embedded mode.
Regards
Thorsten Radde
IDEAL Software GmbH