OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: Emiliano on April 10, 2017, 07:23:47 AM

Title: Form with image from web
Post by: Emiliano on April 10, 2017, 07:23:47 AM
Hello,
I would like to create a form that contains a linked image to a PNG file.

I have tried using the PictureBox1 contro with (dcl-PictureBox-LoadPictureFile promo/FormPromo/PictureBox1 (findfile "namefile.png") T)
but I'm getting this error: NIL value not allowedv :'(

Title: Re: Form with image from file
Post by: Emiliano on April 12, 2017, 02:28:34 AM
No way to put an image from png file into a form through the code?

Why (dcl-PictureBox-LoadPictureFile promo/FormPromo/PictureBox1 (findfile "namefile.png") T)  not works?
Title: Re: Form with image from web
Post by: marcoheuer on April 12, 2017, 08:55:13 AM
hello emiliano,
can (findfile "namefile.png") really find the file?

best regards
marco
Title: Re: Form with image from web
Post by: Emiliano on April 13, 2017, 12:15:53 AM
Yes (findfile "namefile.png") find the file!
Title: Re: Form with image from web
Post by: marcoheuer on April 13, 2017, 01:22:07 AM
currently, I still use version 8.0.5.0.
in this version i have no problems to load a picture with "dcl-PictureBox-LoadPictureFile" in a modeless dialog.

can you upload an example (lsp and odcl file)?