Jump to content

Recommended Posts

Posted

What I would like to do is be able to have a button in a DCL dialog that brings up the standard directory browser (getfiled ?) so that the user can select an appropriate directory. Then I want it to go back to the DCL dialog and input that directory path into a Edit-text field (to display the selected directory to the user). How would I go about doing this? Here is the DCL code I have so far for the dialog:

 

 
BGEbatch: dialog { label = "BGE Batch Process" ;
: row { label = "Directory" ; width = 50;
: edit_box { key = "Dir" ; edit_width = 35 ; edit_limit = 256 ; alignment = left ; }
: button { key = "browse" ; label = "Browse" ; mnemonic = "B" ; }
: ok_cancel
} 

I will have other options in the dialog box, so I want the user to be able to go back to the dialog box after selecting the directory. Thanks in advance for any help you can give me. I know there are many batch process applications out there, but I guess I jsut want the satisfaction of creating it myself, or at least helping to create it. Also, its a good learning experience.

Posted

Lee,

 

Thanks for the quick response! The fuctionality that you put in the ScriptWriter is exactly what I would like to do. So is there anything else I need to incorporate besides the local functions of Dir_text and Dirdialog? Thanks again!

Posted
Thanks for the quick response! The fuctionality that you put in the ScriptWriter is exactly what I would like to do. So is there anything else I need to incorporate besides the local functions of Dir_text and Dirdialog? Thanks again!

 

You'll have to study the code - bear in mind that BFind is more recent and some of the subs have been tweaked since.

Posted

Ok, I guess I can do that. Thanks again for the help. I appreciate it.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...