Capture example for Visual J++

This example captures the current form and displays the captured image with scroll bars.

// Turn on the automatic display rectangles.
LEAD1.setAutoSetRects( true );
LEAD1.Capture( 0, getLeft(), getTop(), getWidth(), getHeight() );
LEAD1.setAutoScroll( true );
LEAD1.ForceRepaint();