Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Manipulating FolderBrowse dialog
#1
I have a macro that prompts for a folder and navigates there in the current file dialog (not a dialog I created, but a file dialog in any app). I'd also like to support folder browse dialogs. Is it possible to navigate the tree control of such a dialog using QM?
#2
What manipulation needed? Select a folder, somewhere deep in the tree, when specified full path?
#3
There is a hidden edit control...

Code:
Copy      Help
int w1=win("Browse For Folder" "#32770")
act w1
int edit=child("" "Edit" w1)
str s="c:\windows"
s.setwintext(edit)
but 1 w1
#4
Perfect, thank you.
#5
Is it possible to navigate the tree to a specified folder and not dismiss the dialog?
#6
Don't know an easy way. Could try to parse path string and select (expand) folders using accessible object functions, but I think it will not be reliable. Or, show other Browse For Folder dialog (use BrowseForFolder function) on top.


Forum Jump:


Users browsing this thread: 1 Guest(s)