customising_20the_20browse_20for_20folder_20dialogue
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
customising_20the_20browse_20for_20folder_20dialogue [2018/03/31 13:19] – external edit 127.0.0.1 | customising_20the_20browse_20for_20folder_20dialogue [2024/01/05 00:22] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
=====Customising the Browse for Folder dialogue===== | =====Customising the Browse for Folder dialogue===== | ||
- | //by Richard Russell, July 2009//\\ \\ The main [[http:// | + | //by Richard Russell, July 2009//\\ \\ The main [[http:// |
+ | |||
+ | <code bb4w> | ||
title$ = "Set root selection" | title$ = "Set root selection" | ||
root$ = " | root$ = " | ||
folder$ = FNbrowseforfolderroot(title$, | folder$ = FNbrowseforfolderroot(title$, | ||
- | The second function, **FNbrowseforfolderinit**, | + | </ |
+ | |||
+ | The second function, **FNbrowseforfolderinit**, | ||
+ | |||
+ | <code bb4w> | ||
INSTALL @lib$+" | INSTALL @lib$+" | ||
Line 11: | Line 17: | ||
init$ = " | init$ = " | ||
folder$ = FNbrowseforfolderinit(title$, | folder$ = FNbrowseforfolderinit(title$, | ||
- | It would in principle be possible to combine the functions of the two routines, so that both the **root** and the **initial selection** may be specified, however that's not very likely to be required in practice.\\ \\ Here are the functions:\\ \\ | + | </ |
+ | |||
+ | It would in principle be possible to combine the functions of the two routines, so that both the **root** and the **initial selection** may be specified, however that's not very likely to be required in practice.\\ \\ Here are the functions: | ||
+ | |||
+ | <code bb4w> | ||
DEF FNbrowseforfolderroot(title$, | DEF FNbrowseforfolderroot(title$, | ||
LOCAL folder%, pathw%, pidl%, malloc%, bi{} | LOCAL folder%, pathw%, pidl%, malloc%, bi{} | ||
Line 39: | Line 49: | ||
ENDIF | ENDIF | ||
=$$folder% | =$$folder% | ||
- | \\ | + | |
DEF FNbrowseforfolderinit(title$, | DEF FNbrowseforfolderinit(title$, | ||
LOCAL folder%, pidl%, malloc%, bi{} | LOCAL folder%, pidl%, malloc%, bi{} | ||
Line 73: | Line 83: | ||
lParam% = FN_sendmessage(hwnd%, | lParam% = FN_sendmessage(hwnd%, | ||
= 0 | = 0 | ||
+ | </ |
customising_20the_20browse_20for_20folder_20dialogue.1522502354.txt.gz · Last modified: 2024/01/05 00:18 (external edit)