PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: FolderView Example  (Read 1994 times)

Bob Simmons

  • Little Newbie
  • *
  • Posts: 4
  • FF3 User
FolderView Example
« on: April 08, 2011, 11:30:50 AM »

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.
Logged

Josť Roca

  • Guru Member
  • *****
  • Posts: 3200
Re: FolderView Example
« Reply #1 on: April 08, 2011, 12:55:01 PM »

And what is FolderView, to start with?

Paul Squires

  • Administrator
  • Guru Member
  • *****
  • Posts: 8848
  • Windows 10
    • PlanetSquires Software
Re: FolderView Example
« Reply #2 on: April 08, 2011, 01:19:03 PM »

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

Bob Simmons

  • Little Newbie
  • *
  • Posts: 4
  • FF3 User
Re: FolderView Example
« Reply #3 on: April 08, 2011, 01:36:45 PM »

Yes, FolderTree, sorry
Logged

Bob Simmons

  • Little Newbie
  • *
  • Posts: 4
  • FF3 User
Re: FolderView Example
« Reply #4 on: April 12, 2011, 03:11:03 PM »

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!
Logged

Paul Squires

  • Administrator
  • Guru Member
  • *****
  • Posts: 8848
  • Windows 10
    • PlanetSquires Software
Re: FolderView Example
« Reply #5 on: April 12, 2011, 05:21:31 PM »

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.  :(
Logged
Paul Squires
PlanetSquires Software
WinFBE Editor and Visual Designer

Pat Dooley

  • Junior Member
  • **
  • Posts: 91
Re: FolderView Example
« Reply #6 on: April 13, 2011, 09:01:37 AM »

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

Rolf Brandt

  • Master Member
  • ****
  • Posts: 933
  • XP Pro SP3 - Vista - Win7
    • Taxi Dispatching Systems
Re: FolderView Example
« Reply #7 on: April 13, 2011, 09:25:08 AM »

Or you can use the TreeView control in case you want to show the folder tree in an explorer like form.
Logged
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

  • Master Member
  • ****
  • Posts: 933
  • XP Pro SP3 - Vista - Win7
    • Taxi Dispatching Systems
Re: FolderView Example
« Reply #8 on: April 13, 2011, 11:57:35 AM »

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???
« Last Edit: April 14, 2011, 03:50:20 AM by Rolf Brandt »
Logged
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

  • Master Member
  • ****
  • Posts: 1360
Re: FolderView Example
« Reply #9 on: April 14, 2011, 03:55:40 PM »

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.
Logged

Bob Simmons

  • Little Newbie
  • *
  • Posts: 4
  • FF3 User
Re: FolderView Example
« Reply #10 on: April 21, 2011, 03:50:29 PM »

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.
Logged