Source language: Translate to:

Preventing the directory from changing

Questions about our File Management and Internet FTP plug-in

Preventing the directory from changing

Postby shx » Mon Jun 10, 2013 11:19 am

Can someone help?

I have the tree portion of the fm file browser turned off.

I am showing the files and folders in a particular directory..

I do not want to allow the use to open a folder and drill down into the folder. How can I prevent this from happening.

I know I could do the DirectoryChanged subroutine to change it back to what it was but the user sees the window changing back and forth , not so nice.

I am sure there must be a way of disabling the click so that the folder should not open and the directory should not change..

Thanks
- Steven
User avatar
shx
 
Posts: 167
Joined: Sun Apr 03, 2005 5:49 am

Re: Preventing the directory from changing

Postby Neosoft Support » Tue Jun 11, 2013 10:26 am

You can remove folders and show only files by setting the ViewConents property to "FilesOnly". For example:

fmSetFileBrowserProperties "FileList1" "ViewContents=FilesOnly;ShowTree=No"

If you want to show folders, but not allow the user to navigate below a certain point, you can use the fmSetRootDir action.
NeoSoft Support
Neosoft Support
NeoSoft Team
 
Posts: 5602
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA

Re: Preventing the directory from changing

Postby shx » Tue Jun 11, 2013 12:33 pm

If you want to show folders, but not allow the user to navigate below a certain point

This is what I want
you can use the fmSetRootDir action

This will stop the user from navigating to a parent folder, I am looking for something that will not allow the double click to drill down into a folder.

there is a subroutine that captures the double click but it only works when click on a file not a folder
- Steven
User avatar
shx
 
Posts: 167
Joined: Sun Apr 03, 2005 5:49 am

Re: Preventing the directory from changing

Postby Neosoft Support » Tue Jun 11, 2013 4:56 pm

The only way to prevent someone from opening a sub folder (other than the DirectoryChanged subroutine) is to not show them using the ViewContents=FilesOnly option.
NeoSoft Support
Neosoft Support
NeoSoft Team
 
Posts: 5602
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA


Return to NeoBookFM/FTP

Who is online

Users browsing this forum: No registered users and 1 guest