Archiman86 Posted November 14, 2010 Posted November 14, 2010 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. Quote
Lee Mac Posted November 14, 2010 Posted November 14, 2010 This is what I use: http://lee-mac.com/directorydialog.html Perhaps take a look at the BFind, Script Writer, or Attribute Extractor - all of which have an example of what you want to achieve. Quote
Archiman86 Posted November 14, 2010 Author Posted November 14, 2010 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! Quote
Lee Mac Posted November 14, 2010 Posted November 14, 2010 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. Quote
Archiman86 Posted November 14, 2010 Author Posted November 14, 2010 Ok, I guess I can do that. Thanks again for the help. I appreciate it. Quote
Recommended Posts
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.