Quantcast
Channel: VBForums - CodeBank - Visual Basic 6 and earlier
Viewing all articles
Browse latest Browse all 1449

DrawingControls for VB6: Shape and Line controls replacement with anti-aliasing

$
0
0
This is a further development of the ShapeEx control.

In this case, it is in an ocx project and has been added the companion control LineEx, that is a Line control replacement.

The main advantage is the anti-aliasing, that means better quality for the figures.
A second advantage is that there are more shapes and the LineEx control is able to draw arrows.
A third advantage is more properties that means more features, more versatility. In the test form you can check all the properties of the ShapeEx control.

Download from GitHub.

Screen shots:





If you want, you should be able to replace the old Shape and Line controls by editing the source code files (*.frm, etc.).
Changing VB.Shape to DrawingCtrls.ShapeEx and VB.Line to DrawingCtrls.LineEx
But you first need to reference the OCX in the project first.
Of course, always make a backup before such an operation.

Note: this version of the ShapeEx control includes the possibility of filling the shapes with a texture pattern.
For doing so, set the FillStyle property to seFSTexture and load the image for the texture in the FillTexture property.

Viewing all articles
Browse latest Browse all 1449

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>