OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: donnieworld on March 09, 2016, 01:50:44 PM

Title: File Open Dialog not displayed?
Post by: donnieworld on March 09, 2016, 01:50:44 PM
What am I missing? I've reduced this to the bare minimum but cannot get a File Dialog to display? It just returns nil. In BricsCAD v16?

(defun c:fdtest ( / )
   (command "_OPENDCL")
   (dcl-Project-Load "FileOpenTest")
   (setq sFile (dcl-Form-Show FileOpenTest/frmImport))
)

(defun c:FileOpenTest/frmImport#OnInitialize (/)
     (dcl-MessageBox "We got here")
)
Title: Re: File Open Dialog not displayed?
Post by: owenwengerd on March 09, 2016, 05:32:53 PM
Can you attach your .odcl file?
Title: Re: File Open Dialog not displayed?
Post by: donnieworld on March 09, 2016, 06:34:54 PM
I attached it to the original post. It is a project with nothing but the file dialog. I was struggling in another project and created this as a test.

I'm on Windows 10 as well.
Title: Re: File Open Dialog not displayed?
Post by: owenwengerd on March 10, 2016, 07:59:07 AM
It seems to be working fine on Windows 7, so maybe the problem is specific to Windows 10. I don't have an easy way to test at the moment, so hopefully someone else can test on Windows 10 to see if the behavior is reproducible there.

BTW, I noticed that your OnInitialize event function name doesn't match the name in the .odcl. You can uncheck and recheck the event to update the name in the .odcl file.
Title: Re: File Open Dialog not displayed?
Post by: DW on March 10, 2016, 03:43:11 PM
I've noticed the same behavior in Windows 7 in both BricsCAD v16 and AutoCAD with 8.0.3.0, however with 8.0.1.0 the file dialog displays correctly.  I haven't checked 8.0.4.0