activeX control properties in object

Discussion in 'AutoCAD' started by Mark Gardiner, Mar 2, 2004.

  1. Hi,

    I am trying to create my own Line Chart control in VB6.
    Can I use a class or type for my own properties(with what I tries so far I
    cant set the properties)
    eg

    Type Axis
    Min as Single
    Max as Single
    end Type

    public property XAxis as Axis
    'then be able to use
    myControl.XAxis.min = -12
     
    Mark Gardiner, Mar 2, 2004
    #1
  2. Create a class and use the LET, GET, and SET for your properties. Search
    the web for Classes as there are plenty of examples for creating classes
    available.
    -- M
    ___________________________
    Mike Tuersley
    CADalyst's AutoCAD Clinic
    Rand IMAGINiT Technologies
     
    Mike Tuersley, Mar 2, 2004
    #2
  3. Thanks Mike

    Do you have web links?

    I have no problem creating the class.
    What I am having trouble with is adding a property myClass to myControl
     
    Mark Gardiner, Mar 3, 2004
    #3
  4. Opps . . .
    'Got it sorted in theI put
    '
    Public XAxis as new myClass
    '
    'In the controls header
    'Thanks Mark
     
    Mark Gardiner, Mar 3, 2004
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.