Re: multi folder view - does this exist?
- From: "Dave O." <nobody@xxxxxxxxxxx>
- Date: Wed, 9 Dec 2009 10:48:43 -0000
If all you want are simple lists then just do that, arrange however many
listviews you require on a form, and fill them with the content of the
appropriate folders.
Filling the listview just entails iterating the folder content, the
FindFirstFile/FindNextFile/FindClose API triplet are your friends here
because they return most of what's needed in a single call (file name, size
and all dates).
The top index stuff I mentioned is not needed. The top index is the listview
(or listbox) line that is the topmost visible line, you'd need to store that
if you were using one control to show different content so when you returned
to a folder the position of everything was apparently unchanged, a list of
selected items would also be used in that context to maintain consistency.
However unless you have a massive monitor with absurdly high resolution, any
more than 4 (report style) listviews will dominate the screen - this also
depends on how much detail you want to display, if you just want the
filenames, perhaps with icons to pretty things up, then you could have
several side-by-side lists. But file size, creation dates, attributes, file
type descriptions or whatever will soon use up the available space.
A way to have several concurrent views but not to use more screen estate
than's available could be to have 2 x 2 listviews with a combobox at the top
of each one, fill all the combo boxes with all the folders you are
interested in then you can select any four folders to view together.
Regards
Dave O.
"mp" <nospam@xxxxxxxxxx> wrote in message
news:uWWzSxCeKHA.5156@xxxxxxxxxxxxxxxxxxxxxxx
Hi Dave,
thanks for your input, see inline
"Dave O." <nobody@xxxxxxxxxxx> wrote in message
news:O3mYY%23BeKHA.2160@xxxxxxxxxxxxxxxxxxxxxxx
snip >> any thoughts?
"mp" <nospam@xxxxxxxxxx> wrote in message
news:eeCuvvAeKHA.1648@xxxxxxxxxxxxxxxxxxxxxxx
It sure would be handy to have an app similar to windows explorer
that would arrange 6-12 or whatever number of views on one form
each view would be a folder/file list like windows explorer
mark
Seems simple enough, there are lots of examples of how to emulate the
Explorer using VB, all you need to do is add a tabstrip and add a tab for
each folder you want to view so you end up with something like Internet
Explorer 8 where you just click a tab to view that folder.
sorry I should have said "folder/file list like windows explorer--- except
much simpler...no tree view not menus on top, just a pane showing the
files, like windows explorer when you have the folderview turned off.
maybe there could be one menu/buttons at top which would act on any pane,
whichever has the focus, but not each pane with it's own...taking up too
much screen realestate...
I don't want multiple tabs, i want to see all lists at one time in a grid
kind of arrangement
eg 3 x 2 or 4 x 4 or whatever...so i can see at a glance without having to
page from one to other
winxp has the multiple tabs in the toolbar where if you have 8 explorers
open there is just one tab with the drop-up menu(or whatever it's called)
but in my case i'm looking at subfolders which may all have the same
name(different jobs...same sub category) so i cant' tell at a glance which
is which
There no need to have lots of listviews, one would be enough as it only
takes a moment to fill (unless you are looking at stupidly over full
folders like system32) and after you've read a folder once you should be
able to speed up subsequent views easily.
as mentioned, i'd prefer an all in one view...which is why i was thinking
multple lists
...if they have more files hopefully a scroll bar would appear (typically
there are not a large number of files in these folders)
You could save the top index and a list of any selected so it looks like
there are multiple controls.
...sorry i don't understand...can you elaborate?
What will be interesting is setting up a monitor on several folders so
the system notifies the application when anything changes.
in my case i'd be the one changing so i could just put in a refresh button
on the form somewhere if i wanted to update the view(which would be rare
in my imaginary scenario...)
If you want more than one folder displayed at once then you could split
the list side horizontally and have 2 listview panes but then you'd need
2 treeviews
I don't want the tree view or the top menus or any of that with the
separate listviews
I'm picturing just one form with 6 or 8 or ? simple views of the
files/folders in a list of predetermined(my current jobs i'm trying to
keep track of, find files for etc) folders
and it rapidly becomes a mess, better to have 2 instances running
if you need 2 folders viewable at once.
Regards
Dave O.
Thanks Dave for your ideas.
I really appreciate your taking time to help me think this through.
mark
.
- Follow-Ups:
- References:
- multi folder view - does this exist?
- From: mp
- Re: multi folder view - does this exist?
- From: Dave O.
- Re: multi folder view - does this exist?
- From: mp
- multi folder view - does this exist?
- Prev by Date: Re: upgrading common controls v5 to v6
- Next by Date: Re: upgrading common controls v5 to v6
- Previous by thread: Re: multi folder view - does this exist?
- Next by thread: Re: multi folder view - does this exist?
- Index(es):
Relevant Pages
|