PDA

View Full Version : Incorporating images in a dialog box


cadconcepts
2005-01-19, 10:37 PM
Hi Everyone-

I was hoping someone could tell me what I am doing wrong. I am including a portion of my lisp program as well as my DCL for review. Ideally, I would like to display BMP image on my dialog box, but the code I have generated only causes my AutoCAD session to lock up. Any help is greatly appreciated. Thanks.

Manuel A. Ayala



(setq x (dimx_tile "ICON")
y (dimy_tile "ICON"))
(start_image "ICON")
(vector_image 0 0 x y (strcat drvpath "cma2005.bmp"))
(end_image)
(start_dialog)


: image_button {
key="ICON";
color=dialog_background;
width=18;
fixed_width=true;
height=2;
fixed_heighth=true;
}

jwanstaett
2005-01-19, 11:18 PM
the dialog box image is not a BMP but AutoCad Slide BMP can not be use with list dialog boxs


(slide_image x1 y1 width height sldname)

Arguments
x1
X-offset from the upper-left corner of the tile, in pixels. Must be a positive value.

y1
Y-offset from the upper-left corner of the tile, in pixels. Must be a positive value.

width
Width of the image, in pixels.

height
Height of the image, in pixels.

sldname
Identifies the slide. This argument can be a slide file (.sld) or a slide in a slide library file (.slb).
Specify sldname the same way you would specify it for theVSLIDE command or for a menu file
(see the <A href="mk:@MSITStore:C:Program%20FilesAutodesk%20Architectural%
20Desktop%203Helpacad_vlr.chm::/vldev12.html#17916">Creating Images (http://creating%20images/) topic in the Visual
LISP Developer's Guide). Use one of the following formats for sldname:
sldname or libname(sldname)