Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Add New Folder question
#1
Tried searching forum but terms are too general...

In part of my code the user needs to browse for folder (to set an output directory). I need to give the option to create a new folder during this process, but the BrowseForFolder interface does not allow this.

Is there a way to use the OpenSave dialog (which does have Add New Folder icon) and limit the user to select a folder only (and not a file)?

Associate a new "Create Folder" button/toolbar to existing BrowseForFolder window?

As always, your help is appreciated!
#2
Use flag 4 with BrowseForFolder.
#3
Ahh...that's what "New Style" is!
thanks!
#4
Another question from long-time newbie ; )

How come this code in my "User Setup" dlg doesn't set ini values:

Function dlg_setup
Code:
Copy      Help
,case IDOK
,,str setup_ini = "E:\MurFTP2\data\setup.ini" ;; ***TO BE REPLACED WITH INSTALL GENERATED INI
,,rset dir_primarystor "dir_primarystor" "setup" setup_ini
,,rset dir_secondarystor "dir_secondarystor" "setup" setup_ini
,,rset file_editor "file_editor" "setup" setup_ini

But exact same code moved into a macro and called from dialog does work:

Function dlg_setup
Code:
Copy      Help
,case IDOK
,,,mac "rset_setup_ini"


Thanks!
#5
Maybe dir_primarystor and other variables are empty when OK pressed.
#6
Shouldn't be empty... using "out" spits out the values.

Plus, in the second example, where "OK" calls the macro (and using str+ in the declarations) works, meaning there is data stored.

Weird.


Forum Jump:


Users browsing this thread: 1 Guest(s)