Results 1 to 5 of 5

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

Threaded View

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Feb 2017
    Posts
    5,700

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

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width