At 13:03 21.03.00 +1200, you wrote:
>I am using MapBasic5.0 on NT4 and want to give the user the ability to
>select a folder.
>If I use the FileOpenDlg command I can get the path to a selected file but
>it requires the user to select a file - therefore they cannot select an
>empty directory.
>
>Has anyone come up with a simply way within MapBasic to give the user a
>graphical way to select a folder - the ability to create a folder at the
>same time would be helpful also but not essential - and I don't want to
>create my own dialog from scratch.
A way to implement a folder selection dialog is to modify
the standard Windows 'GetOpenFileName()' dialog by use of a
so-called 'hook' function for this dialog, intercepting
WM_INITDIALOG and WM_NOTIFY messages. This also makes the
creation of new folders feasible.
Alternatively, you could 'borrow' the directory tree view
from the left frame of the Windows Explorer via OLE2 and
the Windows Shell API, using 'SHBrowseForFolder()'.
In any case, as far as I know, you won't be able to do this
with MB alone, but rather require a more powerful development
tool (like a C++ compiler ...) to build a small supplementary
DLL module.
Christian Singer
Ing.-B�ro
Christian Singer
Singerhoffstr. 14
44225 Dortmund
Germany
E-mail: [EMAIL PROTECTED]
WWW : www.icsinger.de
Phone : +49 231 791464
Fax : +49 231 791460
----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]