Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help to activate and close the correct folder.
#5
BrowseForFolder - before calling it, start new thread that waits for the dialog and changes its title. Example:

Macro Macro2614
Code:
Copy      Help
mac "sub.ChangeTitle" "" "TEST"
BrowseForFolder(_s)


#sub ChangeTitle
function str's
int w=wait(5 WA win("Browse for Folder" "#32770"))
s.setwintext(w)

SelectFileDialogWithTreeview - you can edit the function:

Add new parameter [$title]:
Code:
Copy      Help
function! str&sSelectedFile [$initFolder] [hwndOwner] [$title]

And change the str dd=...END DIALOG code:
Code:
Copy      Help
if(empty(title)) title="Select File"
str st=title; st.escape(1)
str dd=
F
;BEGIN DIALOG
;1 "" 0x90C80AC8 0x0 0 0 224 280 "{st}"
;3 SysTreeView32 0x54030823 0x0 0 0 224 256 ""
;1 Button 0x54030001 0x4 116 260 48 14 "OK"
;2 Button 0x54030000 0x4 168 260 48 14 "Cancel"
;END DIALOG
;DIALOG EDITOR: "" 0x2040201 "*" "" "" ""


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)