Posts: 20
Threads: 6
Joined: Jun 2007
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?
Posts: 12,097
Threads: 142
Joined: Dec 2002
What manipulation needed? Select a folder, somewhere deep in the tree, when specified full path?
Posts: 12,097
Threads: 142
Joined: Dec 2002
There is a hidden edit control...
int w1=win("Browse For Folder" "#32770")
act w1
int edit=child("" "Edit" w1)
str s="c:\windows"
s.setwintext(edit)
but 1 w1
Posts: 20
Threads: 6
Joined: Jun 2007
Posts: 20
Threads: 6
Joined: Jun 2007
Is it possible to navigate the tree to a specified folder and not dismiss the dialog?
Posts: 12,097
Threads: 142
Joined: Dec 2002
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.