Boards /
Runtime/AutoLISP /
Topic 1751
Adding a Browser form
Started by Newbie_to_odcl ·
2012-02-06 05:02 UTC ·
11 replies · SMF topic #1751
Newbie_to_odcl
2012-02-06 05:02 UTC
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
fred_tomke
2012-02-06 09:56 UTC
Hi, in OpenDCL Studio you can create a custom FileExplorer, at the same place where you can add new modal forms.
Regards, Fred
pcmanojkumar
2012-02-13 11:06 UTC
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.
owenwengerd
2012-02-13 11:59 UTC
Please add wishlist requests here:
{2}
roy_043
2012-02-13 14:52 UTC
@ 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.
Newbie_to_odcl
2012-02-16 03:29 UTC
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
fred_tomke
2012-02-16 07:52 UTC
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
abrusil33
2013-10-04 23:01 UTC
....And how to invoke that FolderExplorer???
fred_tomke
2013-10-05 00:50 UTC
Hi, abrusil33,
just create a custom FileExplrer form in OpenDCL Studio.
After that you can call it using dcl_form_show.
Regards, Fred
khann
2013-10-05 07:54 UTC
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)
fred_tomke
2013-10-11 07:21 UTC
Hi, khann, FileExplorer is as stable as getfiled. Effects of unstablitlity are caused by the lisp-code behind.
Regards, Fred
khann
2013-10-13 01:55 UTC
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