File Icons

Discussion in 'AutoCAD' started by Kevin, Sep 3, 2004.

  1. Kevin

    Kevin Guest

    Does anyone know of a way to add the file icon next to some text in a
    listbox?
    Similar to the blue ones in the file open dialog

    Kevin
     
    Kevin, Sep 3, 2004
    #1
  2. Kevin

    HJohn Guest

    It probably would be possible using API functions to paint each item of the list, however a much easier way would be to use a ListView and ImageList instead. If you want to use the drawing files icon, extract them from the app. file and load them into the ImageList. Finally associate them to the ListView.Icons and SmallIcons properties.
     
    HJohn, Sep 3, 2004
    #2
  3. True but it assumes he has vb - vba does not come with a listview or
    imagelist controls. If you need the listview and imagelist, checkout
    www.vbAccelerator.com
    -- Mike
    ___________________________
    Mike Tuersley
    CADalyst's CAD Clinic
    Rand IMAGINiT Technologies
    ___________________________
    the trick is to realize that there is no spoon...
     
    Mike Tuersley, Sep 3, 2004
    #3
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.