[Gambas-user] DirView Control Help
Stefano Palmeri
rospolosco at ...152...
Mon Apr 14 10:23:46 CEST 2008
Alle 20:39, domenica 13 aprile 2008, Demosthenes Koptsis ha scritto:
> Hi to all.
>
> I have a DirView control. By default the control lists the contents of
> /home/user directory when it is created.
> I changed the Root directory but the /home/usr contents are still
> listed when the program runs.
>
> Is it possible to open or close directories by code? Actually i want
> to set Root directory at design time and list the contents only of
> this directory at running time.
>
> Thanks.
Try:
PUBLIC SUB Form_Open()
DirView1.Current = "/root"
END
Anyway, you will need root permission to expand the tree.
Ciao,
Stefano
More information about the User
mailing list