Slide_image (using slides in dialogs)

Discussion in 'AutoCAD' started by AndrewE.Long, Jan 5, 2005.

  1. AndrewE.Long

    AndrewE.Long Guest

    I'm attempting to create a program which uses image buttons in a dialog to insert blocks. I have created slides that reside in the same folder as the LISP and DCL files for the program. I have been unable to determine how to access the slides with LISP, so my dialog keeps opening up with a bunch of white rectangles. The arguments for the slide_image function require a "key" relative to the DCL, but no path to the slide file. Does anyone have a similar program from which he/she could send me the crucial bits of code?

    Am I making this too hard? Is there a simple bit of code I'm missing via a massive brain-fart? I'm a little tired... 2 year old had me up for a while last night...
     
    AndrewE.Long, Jan 5, 2005
    #1
  2. AndrewE.Long

    BillZ Guest

    (start_image "arcstr")
    (slide_image 2 1 20 20 "arcstr")
    (end_image)

    Remember to make your slides in contrasting colors to the dialog background color.

    White on white doesn't show up real good. :)

    Bill
     
    BillZ, Jan 5, 2005
    #2
  3. AndrewE.Long

    ECCAD Guest

    Something like this works:
    (slide_image 0 0 x2 y2 (strcat path "myslide.sld"))

    Bob
     
    ECCAD, Jan 8, 2005
    #3
  4. AndrewE.Long

    AndrewE.Long Guest

    Thanks for the help.
     
    AndrewE.Long, Jan 18, 2005
    #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.