Page 2 of 2

Re: Foreground Fileview

Posted: Wednesday 26th April 2023 8:54pm
by BruceSteers
vuott wrote: Wednesday 26th April 2023 8:11pm No files appear in the FileView Control.
Why ?
I have no idea.

You can see in form open...
FileView1.Dir = User.Home

It populates just fine here with files in $HOME !

Re: Foreground Fileview

Posted: Thursday 27th April 2023 12:07am
by vuott
Ah, right !
ok.

Re: Foreground Fileview

Posted: Thursday 27th April 2023 7:04am
by toto96
A big thank you to BruceSteers, it works perfectly.
Thanks to everyone for your help

Re: Foreground Fileview

Posted: Thursday 27th April 2023 12:01pm
by BruceSteers
toto96 wrote: Thursday 27th April 2023 7:04am A big thank you to BruceSteers, it works perfectly.
Thanks to everyone for your help
No worries, happy to help.

My advice to help you experiment with making controls do things beyond the normal would be this..

* See if the control exists in the components gb.form or gb.gui.base and examine it's source code.
If you do not have the source downloaded it can be viewed here..
https://gitlab.com/gambas/gambas/-/tree ... rc/gb.form
https://gitlab.com/gambas/gambas/-/tree ... b.gui.base

Examining the source of the custom gambas controls can really help see what can and cannot be done.

* use the "Print object.Children[x]" trick i mentioned in the previous post to find the Children/types and the path to the internal control you want to tweak.

* use the wiki to see what properties/methods the controls have to get what you want (Ie. like using .RichText in place of .Foreground for text colour)


Also be aware things like this can possibly break at some point if the main component changes. (i think it is rare)
For example if something changes in the FileView control that adds an Object/Panel before the others, then the Panel we want may not be Children[0] anymore.