OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: Newbie_to_odcl on February 05, 2012, 09:02:40 PM

Title: Adding a Browser form
Post by: Newbie_to_odcl on February 05, 2012, 09:02:40 PM
Hi All, I want to add a browser  form (Same as "Open a File" kind)
for user to browse to a text file for some input,
once user has selected the file and press a "Open" button, it shall
proceed to the next form for other settings.

Just wondering whether is there any shortcut to add a Browser form?
Apologize in advance as i am new to OpenDCL. Thx
Title: Re: Adding a Browser form
Post by: Fred Tomke on February 06, 2012, 01:56:27 AM
Hi, in OpenDCL Studio you can create a custom FileExplorer, at the same place where you can add new modal forms.

Regards, Fred
Title: Re: Adding a Browser form
Post by: pcmanojkumar on February 13, 2012, 03:06:10 AM
i think it s better to call the Autolisp function (getfiled; check the Autolisp help for getfiled function.

I think there is no difference between Fileexplorer dialog box in opendcl. Both have one common problem is that "you cant put an Image in the Title"..

At least OpenDCL Programmers  should take care about some improvements in that FileExplorer.


Title: Re: Adding a Browser form
Post by: owenwengerd on February 13, 2012, 03:59:54 AM
Please add wishlist requests here:
https://sourceforge.net/tracker/?group_id=187950&atid=923366 (https://sourceforge.net/tracker/?group_id=187950&atid=923366)
Title: Re: Adding a Browser form
Post by: roy_043 on February 13, 2012, 06:52:12 AM
@ pcmanojkumar:
It is my understanding that the (gefiled) function doesn't support multiple selection. The ODCL FileExplorer does. It also allows a more detailed manipulation of the dialog. So I would say that there are clear differences.
Title: Re: Adding a Browser form
Post by: Newbie_to_odcl on February 15, 2012, 07:29:14 PM
Hi All,
I think the getfiled function will be a handy solution to this
as i am looking for a single text file input.
Thanks for the help and suggestion.

Newbie
Title: Re: Adding a Browser form
Post by: Fred Tomke on February 15, 2012, 11:52:54 PM
Hi, it depends on what you're going to do. I use the FileExplorer to store data in a special way or to get data in a definite way. Here an example to load data:

Regards, Fred
Title: Re: Adding a Browser form
Post by: abrusil33 on October 04, 2013, 04:01:55 PM
....And how to invoke that FolderExplorer???
Title: Re: Adding a Browser form
Post by: Fred Tomke on October 04, 2013, 05:50:02 PM
Hi, abrusil33,
just create a custom FileExplrer form in OpenDCL Studio.
After that you can call it using dcl_form_show.

Regards, Fred
Title: Re: Adding a Browser form
Post by: khann on October 05, 2013, 12:54:58 AM
Hi,

Because "FileExplorer" can change the size of form, I prefer "FileExplorer" to "getfiled".

But in my experiences, I think "getfiled" is more stable at runtime. 8)
Title: Re: Adding a Browser form
Post by: Fred Tomke on October 11, 2013, 12:21:11 AM
Hi, khann, FileExplorer is as stable as getfiled. Effects of unstablitlity are caused by the lisp-code behind.
Regards, Fred
Title: Re: Adding a Browser form
Post by: khann on October 12, 2013, 06:55:36 PM
Hi, Fred.  :)
Pleasure to see you.
You may be right.
OpenDCL's "FileExplorer" is good, really good,
but for years of my experiences, I'm not sure there may be something wrong in my code,
and there so many lines of code, so many different circumstances of using Window OS, and ACAD Versions.
When I use "FileExplorer" and at the moment of searching files and selection,
I checked several times the mouse pointer and ACAD system stop very few seconds and released like stuck on something.
I don't know exactally what causes this and I'm not sure this happens  only for me or others also got like this case.
Yes, this is just my own story.
I don't mean to say the bad things of "FileExplorer" and OpendDCL.
I believe you know I'm very loving OpenDCL and people at Here ;D