Jump to content



Photo

Looking for a vector component (OCX)


  • Please log in to reply
6 replies to this topic

#1 Gemalde

Gemalde

    Neowinian

  • Joined: 14-February 05
  • Location: Athens/Greece

Posted 04 March 2013 - 14:54

I'm creating a CNC solution in VB.6, and I'm looking for a low-priced vector component (OCX). Any suggestions? :)


#2 Radium

Radium

    Neowinian

  • Joined: 08-April 04

Posted 04 March 2013 - 15:39

Maybe, just maybe, you can create your own. :)
I tried to not be dependant on non-standard controls when I was playing with VB6. I wrote my own, which resulted in more coding for me but less unused code. The final product was lighter.

#3 XerXis

XerXis

    Neowinian Senior

  • Joined: 13-February 06
  • Location: Belgium

Posted 04 March 2013 - 15:40

You mean a mathematical vector library?

#4 XerXis

XerXis

    Neowinian Senior

  • Joined: 13-February 06
  • Location: Belgium

Posted 04 March 2013 - 15:45

I don't see why you need an ocx, which is mostly used for components that interface with the user (GUI), I think you mean a normal COM dll ;). Anyway, a vector library is very easy to implement yourself, most vector libraries are part of much bigger libraries and including them would probably be overkill. The 4 or 5 most used vector operations are like 10 lines to program. Anyway, if it's speed you are looking for it's better to make your own library in C/C++, compile to dll (normal one) and call it from vb. If that is too advanced for you, just program it in vb, but it will be slower.

If you really want to use a fast library and not afraid of all the overhead that comes with it you could use the math library of directx, which has a COM interface.

#5 OP Gemalde

Gemalde

    Neowinian

  • Joined: 14-February 05
  • Location: Athens/Greece

Posted 05 March 2013 - 11:12

First of all thank you all for the replies! :)

Creating a vector control by ourselfs it would be really time consuming. We will have to do advanced operations like object snapping, zooming in/out, etc -- it's not just about drawing some lines.. Unfortunately our time frame doesn't allow that. I'm currently trying Avax Vector ActiveX (link)... Does anybody have used it?

#6 +Nik L

Nik L

    Where's my pants?

  • Tech Issues Solved: 1
  • Joined: 14-January 03

Posted 05 March 2013 - 11:15

I don't think he just means the mathematics, I think he means a whole vector drawing interface?

#7 The_Decryptor

The_Decryptor

    STEAL THE DECLARATION OF INDEPENDENCE

  • Tech Issues Solved: 3
  • Joined: 28-September 02
  • Location: Sol System
  • OS: iSymbian 9.2 SP24.8 Mars Bar

Posted 05 March 2013 - 12:33

The normal picturebox control already supports vector drawing via WMF (and GDI), it just sucks at it (Because it's GDI and Visual Basic). If you want high quality drawing you'd want to use GDI+ or something like Cairo/Skia.

GDI+ will be your best bet honestly, although you'll still have to do a bunch of work yourself.



Click here to login or here to register to remove this ad, it's free!