Listview controls or flexgrid controls

Discussion in 'AutoCAD' started by John Coon, Feb 25, 2005.

  1. John Coon

    John Coon Guest

    Hi All,

    I need some help displaying data in a listview or flexgrid inside a form.
    I'm looking to create a listview box or flexgrid that displays layer
    information about blocks. My problem is when I try to insert the control I
    get an error that it is not registered. the error displays a dialog box with
    a help button but when I select the help button I get nothing.

    Can any point me to some helps files that explain the listview or flexgrid
    and how to register them and push data into the columns displays.

    The interesting thing is I have a sample form with a listview that I found
    in the ng download selection and it display the data fine. Why then when I
    select a new listview from the tools bar I get this error. In the end all
    I'm trying to do is create a few data display forms that look like the civil
    3d and 2005 displays with styles.

    as always thanks for any comments. Have a great day.

    John Coon
     
    John Coon, Feb 25, 2005
    #1
  2. My experience has been that FlexGrid or ListView don't do well in the VBA
    environment.
    I've had all manner of strange behavior when using them in VBA.

    You might want to think about using VB instead. I use them all over the
    place in VB with good results.
     
    Mark Johnston, Feb 25, 2005
    #2
  3. Look at vbAccelerator for controls you can use as neither the listview or
    flexgrid are allowed to be used in vba per MS' eula

    -- Mike
    ___________________________
    Mike Tuersley
    CADalyst's CAD Clinic
    Rand IMAGINiT Technologies
    ___________________________
    the trick is to realize that there is no spoon...
     
    Mike Tuersley, Feb 25, 2005
    #3
  4. John Coon

    Jeff Mishler Guest

    I find this quite interesting.

    First, I can't seem to find a EULA for VBA anywhere on my machine. If I
    can't use these controls, why are they available for use? How did I get them
    on my computer in the first place?

    Second, I have seen posted previously the fact that Flexgrid is not to be
    used, but this is the first time I've seen Listview included.

    Mike, can you point me to the EULA for VBA?

    Thanks,
    Jeff
     
    Jeff Mishler, Feb 25, 2005
    #4
  5. To make it simple, Jeff, look at a clean install of AutoCAD. Go into the
    VBAIDE and if a control isn't on the toolbar, you can't redistribute it -
    i.e. anything you go looking for is taboo unless its a freeware/3rd party
    that you downloaded.

    To get the actual eula, you need to download the vba sdk from MS.

    -- Mike
    ___________________________
    Mike Tuersley
    ___________________________
    the trick is to realize that there is no spoon...
     
    Mike Tuersley, Feb 25, 2005
    #5
  6. John Coon

    Jeff Mishler Guest

    OK, I believe you Mike.

    I just want to know how someone that:
    just installed Autocad,
    goes to the VBAIDE,
    creates a new form,
    right clicks on the toolbox,
    and finally selects Flexgrid for a new control, and places that control in
    their form......

    has just done something they aren't supposed to. Because based on the
    licenses I read when installing, or my help files, or any readme files, I
    didn't see any warning against this.

    And please, I'm not trying to be difficult or argumentive, I really would
    like to know how I would know that the form I've been using (and have shared
    with others) for the last year and a half is based on breaking a
    license.......without a 'word of mouth' validation.

    Thanks for understanding my desire to understand ;-)
     
    Jeff Mishler, Feb 25, 2005
    #6
  7. Good questions....I dunno. I learned via word-of-mouth as well after I had
    issues getting things installed and running in a past life =) Luckily, I do
    everything in DLL so I don't need to worry/question it any more.

    The other issue, too, is that those controls are "problem children" if you
    try and use them in vba. They cause weird graphical issues, memory
    problems, etc. So, its best not to use them at all and look to some place
    like vbAccelerator [vbA] for free replacements. vbA's are decent, you just
    need to be careful to read the requirements because some times the controls
    require vbA libraries not included with the control itself.

    -- Mike
    ___________________________
    Mike Tuersley
    ___________________________
    the trick is to realize that there is no spoon...
     
    Mike Tuersley, Feb 25, 2005
    #7
  8. Oh, Randall Rath & company @ CADVault have written quite a few replacement
    controls as well.

    -- Mike
    ___________________________
    Mike Tuersley
    ___________________________
    the trick is to realize that there is no spoon...
     
    Mike Tuersley, Feb 25, 2005
    #8
  9. John Coon

    Jeff Mishler Guest

    Yes, I know. Thanks. But that poor new guy just writing his first macro with
    a cute litle form and finds the the listview control fulfills his need
    .............

    Thanks for your input, Mike. At least I know I'm not crazy for wondering
    these things. I don't mind following rules and regulations, I just like to
    know what it is I'm supposed to follow. Now where's that spoon....
     
    Jeff Mishler, Feb 25, 2005
    #9
  10. John Coon

    John Coon Guest

    Guys,

    Thanks for the description of what I was experiencing, I am that guy Jeff
    is talking about trying to use one of these controls.
    The sample listview I have was one that Jeff (you) wrote. it's was a xref
    sync routine. I liked the column formatting and wanted to use that to
    display some layer values in my form. I can copy and paste Jeff's listview
    box and it would view fine but when I tried to insert one from the toolbar I
    got the error.

    I'll look into the vbAccelerator.

    Thank you all, have a great day.
    John Coon
     
    John Coon, Feb 25, 2005
    #10
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.