scbs29
10/22/2011 7:14:00 PM
On Sat, 22 Oct 2011 11:02:13 +0100, scbs29 <scbs29@fred.talktalk.net>
wrote:
>On Thu, 20 Oct 2011 10:36:37 +0100, "DaveO" <djo@dial.pipex.com>
>wrote:
>
>>
>>"scbs29" <scbs29@fred.talktalk.net> wrote in message
>>news:14ov97dbjgqsjc230vv4flebk31qmd7k1a@4ax.com...
>>> When the program starts it lists all the sub-folders in a folder in
>>> list box 1.
>>> Clicking on a folder name then sets a string which is used as a folder
>>> name passed to list box 2. List box 2 then displays the folders or
>>> filenames in this new folder.
>>> Clicking on a folder name then sets a string which is used as a folder
>>> name passed to list box 3. List box 3 then displays the folders or
>>> filenames in this new folder.
>>> This is all that the program does at present.
>>
>>Seems a lot of effort to reproduce what a TreeView control can do easier,
>>neater and far more intuitively.
>>
>>DaveO.
>>
>
>Thanks for the advice. I have never used a TreeView control so I did
>not think of that.
>
>Perhaps if I explain what I am trying to do.
>My wife makes greeting cards and has many images which she can use. I
>have written VB6 programs to take these images and display them, allow
>selecting, passing the file to an external image editor, etc. However,
>she has one set of thousands of images which I want to use my program
>for viewing etc. She is computer illiterate, so needs consistency in
>the programs she uses to access the images. Until now, I have coded
>the image file names into my program, which is ok for when the
>filenames have some consistency, so that I can set up the names easily
>in some kind of loop. The images which I want to add have no
>consistency at all regarding filenames, and each name would have to be
>coded, which you can imagine would be quite a bit of work.
>
>Eventually I want to point the program at the root folder for these
>images, and the program will then automatically iterate through this
>folder and any sub-folders until it eventually reaches the image
>files. These files, folders etc will then be automatically entered
>into a database of some kind for access by my program.
>
>Can this be done using a treeview control ?
>I will try it out and see what I can do, but would be grateful for any
>advice.
>If not, I will try writing my program again and see if I can get past
>the saving problem.
>
>remove fred before emailing
>Registered Linux User 490858
I have had a look at the treeview control, and while it would seem to
be ok if I wanted to show the folder tree, as far as I can see if I
set the root node to the root folder of the files, my program would
still have to iterate through the sub-folders to add them as nodes.
The control would then show the folder hierarchy as a tree view.
Please correct me if I am wrong.
I think that I did not express myself clearly. The folders listed in
my list boxes are purely a temporary measure for me to see the
operation of the program and make sure that the correct folders/files
are picked up. These listboxes would not be present in the final
program. The program would do all picking up of folders and files and
inserting them into a database without the user seeing any of this.
remove fred before emailing
Registered Linux User 490858