VBA - Graphics

Discussion in 'AutoCAD' started by jbryant4, Oct 11, 2004.

  1. jbryant4

    jbryant4 Guest

    Trying to create userforms in VBA as opposed to DCL. Having a hard time getting graphics to work. I need a Form with a graphic to display a drawing with User Input entries, for example Dim A, DIm B, etc. In DCL you simply use a slide file which works fine. I have tried .jpg and .bmp inside of VBA with no luck. Can't get the graphic to fill the control. Quality is very poor, etc. Is there a good way to do this? DO you have to make your graphic the size of the control? Which graphic format is best?
     
    jbryant4, Oct 11, 2004
    #1
  2. jbryant4

    Ed Jobe Guest

    Search the customer files ng for slide.ocx.
     
    Ed Jobe, Oct 12, 2004
    #2
  3. jbryant4

    jbryant4 Guest

    I did and found a post saying "here is the latest slide.ocx". However there was no attachment. No Help.
     
    jbryant4, Oct 12, 2004
    #3
  4. jbryant4

    Anne Brown Guest

    This was posted during a time the discussion group was having
    problems with uploads. Would someone please reup the file? If it
    is under 1 meg in size, it may be uploaded here.
    ---
    Anne Brown
    Discussion Groups Administrator
    Autodesk, Inc.

    Slide ocx (0 replies)
    Posted by: Jürg Menzi
    Date: May/15/04 - 10:51 (GMT)
    The latest slide control by Cyrille Fauvel...

    Cheers
    --
    Juerg Menzi
    MENZI ENGINEERING GmbH, Switzerland
    http://www.menziengineering.ch

    Attachment not added (content type not allowed):
    "slide_2001-06-28.zip"
     
    Anne Brown, Oct 12, 2004
    #4
  5. jbryant4

    jbryant4 Guest

    Figured it out...I tried Printing to Raster Printer (.jpg), Capturing Sceen and saving files as .jpg, bmo, (Using PSP), and none worked.....Here is the fix.....Size your window about the same size as your image control on the VBA form....From ACAD, do an Export command and select .BMP, select objects.....Results is a perfect graphic (just like .sld in DCL) that likes exactly like the clear AutoCAD image.
     
    jbryant4, Oct 12, 2004
    #5
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.