[Gambas-user] Access only to the user's folder

Benoît Minisini gambas at ...1...
Tue Aug 3 00:22:18 CEST 2010


> Hi.
> 
> I want the user to select the Dialog.SelectDirectory () only could
> choose or create folders within the folder /home.
> 
> It can be done with Dialog.Path = User.home, but this does not stop so
> you can select the root directory /
> 
> Regards
> 

You have to implement your own file dialog with a FileChooser and a 
DirChooser.

The DirChooser has a Root property that constraints the choice to a directory 
and its subdirectories.

Regards,

-- 
Benoît Minisini




More information about the User mailing list