• Welcome to PlanetSquires Forums.
 

FolderView Example

Started by Bob Simmons, April 08, 2011, 11:30:50 AM

Previous topic - Next topic

Bob Simmons

I'm pretty new to Firefly.  Are there examples of using the FolderView tool?  Searching the forums for the term FolderView is not bringing up much.

José Roca

And what is FolderView, to start with?

Paul Squires

Maybe it is the FolderTree custom control written by Philipp Weidmann a few years ago (and that I distribute with FF)?
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

Bob Simmons


Bob Simmons

I had searched for FolderTree, and not finding anything searched other similar terms such as Directory Tree, Directory View, Folder View, etc.  So by the time I posted, I inadvertently used the wrong term.  The end result is the same, I am not finding and examples or documentation for the FolderTree.  I can place one on a form, and it's functional.  However I am not having much luck interacting with it, and accessing basic info, like what the current folder is that has been clicked on.  So if someone could point me in the right direction, I would appreciate it.  Thanks!

Paul Squires

Hi Bob,

I have no experience with this control. However, I know that Roger Garstang (regular FF3 user here) has used it a lot - and even modified it to some extent. Maybe he can provide some pointers. There is not much info available other than some declares in the inc file.

I have continued to include the custom control in the FF distribution over the years in the case that some users are still using it.

The author, Philipp Weidmann, was a relatively active PowerBasic coder 4 years ago. He suddenly dropped out of sight in the programming community and has not pursued programming since as far as I know.

So...as far as offering guidance on this custom control it would be very difficult. I don't have the source code for the control so it is even hard to know exactly what each parameter for the DLL's functions are.  Sorry Bob.  :(
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

Pat Dooley

Would the FF function "Browse for Folder" work for you? It's the first item under "General" in the Firefly Functions tab.

Rolf Brandt

Or you can use the TreeView control in case you want to show the folder tree in an explorer like form.
Rolf Brandt
http://www.rbsoft.eu
http://www.taxifreeware.com
I cook with wine, sometimes I even add it to the food.
(W. C. Fields)

Rolf Brandt

#8
Funny Control indeed.

I didn't get it to work until I placed an invisible TreeView Control on the form. Then you can use the FF_TreeView functions on it. No idea if that is the it is supposed to be, can't really imagine. I have to check it a little closer.

Attached is a little example with just some basic functions.

PS:
It was the FolderTree_GetTreeViewHandle function that got me on the idea to try to put a TreeView on the form.  Maybe somebody else has a clue???
Rolf Brandt
http://www.rbsoft.eu
http://www.taxifreeware.com
I cook with wine, sometimes I even add it to the food.
(W. C. Fields)

Roger Garstang

I'd just use the Treeview as suggested.  All the code does is make a TreeView by parsing the folder paths.  His code embeded icons for the disk/folder types.  I modified it to use the System Image list so no icons were needed and thus no DLL was required, but Firefly kept on giving me GPFs.  There have been a few updates since, but I just never had a need for it again yet to mess with it.

Bob Simmons

Sounds like the best bet is to use the Treeview.  At first, it looked like this custom control would save me a little work, but I'm not so sure that is the case.  Thanks for the comments everyone.