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

Gianluigi bagonergi at gmail.com
Sat Mar 3 12:34:30 CET 2018


2018-03-03 12:29 GMT+01:00 Gianluigi <bagonergi at gmail.com>:

>
>
> 2018-03-03 0:25 GMT+01:00 Benoît Minisini <g4mba5 at gmail.com>:
>
>> Le 02/03/2018 à 20:12, Shannon Kuchler a écrit :
>>
>>> 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
>>>
>>>
>>>
>> At the moment the DirChooser control does not know how to list mounted
>> device. This is something to add.
>>
>> --
>> Benoît Minisini
>>
>> --------------------------------------------------
>>
> I do not understand, here it works:
>
>
> Public Sub Form_Open()
>
>   Dim sPath, sUser, sDevice As String
>
>   sUser = User.Name
>   sDevice = "Elements"
>   sPath = "/media" &/ sUser &/ sDevice
>   DirBox1.Value = sPath
>   DirBox1_Click()
>
> End
>
> Public Sub DirBox1_Click()
>
>   Print DirBox1.Value
>
> End
>
> Regards
> Gianluigi
>
> Sorry, now I understand, I can not know the name "Elements" from DirBox.
OK thanks.

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


More information about the User mailing list