[Gambas-user] Guestion about DirBox.Dialog.SelectDirectory

Shannon Kuchler shannon at inflecto.org
Sat Mar 3 20:53:37 CET 2018




Thanks Lee indeed I do know that. What I'm doing is writing a game launcher, game installer, mod installer for the most basic of Linux users. I of course I can't expect every Linux gamer out there to know how to navigate root to find there mounted devices.  I also don't expect everyone will want to install everything in /home/user/..... either. I'm trying to fallow the old adage "keep it simple stupid" so as to not make things to complicated for the end user. 
  
Thank you all very much for your replies. I was hoping I missed something in the DirBox control or was just over looking another that had this capability. On the other hand I was afraid that I might not have done enough research before posting this issue. I haven't written and code sense the early VB5 days so I'm basically relearning everything as I go.
I can see Gambas is still very much a work in progress and it's so great to see so much support and dedication.   
   





I don't see that capability in DirBox either.

You probably already know this, but any mounted device should be accessible through the root directory. For example, on my
system, a CD-ROM disk is mounted at:
/run/media/[user]/

DirChooser has a Root property, as does DirView. Maybe you could set that with something like:
DirChooser1.Root = "/run/media/" & User.Name

I know, not much help.

Ah, good catch Gianluigi. I missed the Value property on DirBox. Maybe you could set that as suggested.


-- 
Lee


On 03/02/2018 02:12 PM, Shannon Kuchler wrote:
> In DirBox.Dialog.SelectDirectory I can't find a way to change the current device so that I have access to other mounted drives.
> 
> I know I have to be over looking something here. Maybe this is the wrong control for the task I need. Looking through the
> components I can't find anything that looks like it will work.
> 
> 
> Did I miss something in this control?  Is there a component I missed?  Therefore I'm trying to use the wrong control?
> 
> 
> What I need to do is allow the user to select and or create a directory on any mounted hard drive
> 

--------------------------------------------------

This is the Gambas Mailing List:
https://lists.gambas-basic.org/listinfo/user

Search the list:
https://lists.gambas-basic.org/cgi-bin/search.cgi

Hosted by https://www.hostsharing.net

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20180303/5a99cb1e/attachment.html>


More information about the User mailing list