I hope user can select directory or file.
use DirDialog(), user can find dir, cann’t see dir files.
use FileDialog(), only can select file.
Hope both support select directory and file.
I hope user can select directory or file.
use DirDialog(), user can find dir, cann’t see dir files.
use FileDialog(), only can select file.
Hope both support select directory and file.
luckrill wrote:
I hope user can select directory or file.
use DirDialog(), user can find dir, cann't see dir files.
use FileDialog(), only can select file.Hope both support select directory and file.
You should think carefully about this, because it makes for a very bad
user experience.
For example, let's say we have a directory structure \a\b\c, and file at
the bottom called x.txt. If you present a "combined" dialog, and I
double-click on "c", does that mean I want to choose the directory "c",
or does that mean I want to open the directory so I can choose from the
files within it? How would I ever be able to select a directory, if
that directory contained files? Remember, users are USED to the
standard dialogs. If you do something different, users will be confused.
This is why most programs that need both (like CD burning programs)
either use separate buttons for "choose file" and "choose directory", or
they use drag-and-drop from one window to another.
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.