Posted December 01, 2002 12:00AM by Robert Smith
Tagged: Coding, VB, Imaging
Originally published December 2002 on DoItIn.net using VB7.0/2002. Updated for VB7.1 February 2005
Links for compiled demo versions, all required resources and source code are included at the end of this article. Plus, get the complete eBook in Adobe Acrobat 7 format ... all here.
22) Adding ImageEditorsSelect the toolbox icon for the svImageEditor control and draw an instance near the bottom of the pnlSource, leaving room between it and the toolbar. Select the svImageEditor control and in the property sheet set the Name to "svImageSource" and the MouseMode to "AutoScroll" which will be our default mode. To position the editor, set the Dock property to "Bottom", this will fill in the lower area of the panel. Now carefully drag the top edge of the editor up to nearly touch the bottom edge of the toolbar. Click away from the controls to check the placement and when it's pretty snug without overlapping select the editor and in the property sheet set the Anchor toAll Sides (leave the Dock set to Bottom). Save the solution. F5 to test that the controls are all resizing correctly when you slide the splitter and resize the form. Now do the same steps with an svImageEditor on the Result panel (setting this one's Name to "svImageResult"). F5 to test. 
Next: A flat/popup/multicolored toolbar zoomcombo Robert Smith
Kirkland, WA added to smithvoice march 2005
jump to: |