Adding a Browser form

Started by Newbie_to_odcl, February 05, 2012, 09:02:40 PM

Previous topic - Next topic

Newbie_to_odcl

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

Hi, in OpenDCL Studio you can create a custom FileExplorer, at the same place where you can add new modal forms.

Regards, Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

pcmanojkumar

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

Owen Wengerd (Outside The Box) / ManuSoft

roy_043

@ 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

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

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
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

abrusil33

....And how to invoke that FolderExplorer???

Fred Tomke

Hi, abrusil33,
just create a custom FileExplrer form in OpenDCL Studio.
After that you can call it using dcl_form_show.

Regards, Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

khann

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

Hi, khann, FileExplorer is as stable as getfiled. Effects of unstablitlity are caused by the lisp-code behind.
Regards, Fred
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

khann

#11
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