PaintSizeMode Example for Visual J++

This example shows how to set the PaintSizeMode property so that the control uses only a vertical scroll bar.

LEAD1.setAutoScroll( true );
LEAD1.setAutoSetRects( true );
LEAD1.setPaintSizeMode( (short) LTOCXU.PaintSizeModeConstants.PAINTSIZEMODE_FITSIDES );
LEAD1.ForceRepaint();