How to add image to dialog box?

How to add image to dialog box?

Anonymous
Not applicable
1,102 Views
4 Replies
Message 1 of 5

How to add image to dialog box?

Anonymous
Not applicable

Hello,
I want to add a slide image to dialog box. However I have a white screen on the box.
Can anyone help me add the image?
Thanks in advance.

 

(setq x (dimx_tile "picture") 
      y (dimy_tile "picture"))       
(start_image "picture")	
(slide_image 0 0 x y "2ddraw")	
(end_image)
0 Likes
Accepted solutions (1)
1,103 Views
4 Replies
Replies (4)
Message 2 of 5

john.uhden
Mentor
Mentor
Accepted solution

I don't remember why this may help, but in one of my old codes I had added a line, as I will add here (in blue) to yours...

 

(setq x (dimx_tile "picture") 
      y (dimy_tile "picture"))       
(start_image "picture")
(fill_image 0 0 x y 0)  ;; black it out
(slide_image 0 0 x y "2ddraw")	
(end_image)

Also, it appears that I forced the complete file name, as in

 

(and
(setq slide "2ddraw") (setq file (findfile (strcat slide ".sld"))) (slide_image 0 0 x y file) )

I hope my deteriorating memory of the Battle of Hastings helps.  All I really remember is that it was in 1066 when I was just a youngster.

John F. Uhden

0 Likes
Message 3 of 5

Anonymous
Not applicable

Thank you for reply but this time I have a black screen on dialog box.

0 Likes
Message 4 of 5

john.uhden
Mentor
Mentor

Please post what you have this time.

John F. Uhden

0 Likes
Message 5 of 5

Anonymous
Not applicable

I tried it at different computer and your code run.

Thank you very much.

0 Likes