Foreground Fileview [SOLVED]

New to Gambas? Post your questions here. No question is too silly or too simple.
User avatar
BruceSteers
Posts: 1565
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: Foreground Fileview

Post 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 !
If at first you don't succeed , try doing something differently.
BruceS
vuott
Posts: 262
Joined: Wednesday 5th April 2017 6:07pm
Location: European Union

Re: Foreground Fileview

Post by vuott »

Ah, right !
ok.
Europaeus sum !

Amare memorentes atque deflentes ad mortem silenter labimur.
toto96
Posts: 8
Joined: Monday 24th April 2023 5:23pm

Re: Foreground Fileview

Post by toto96 »

A big thank you to BruceSteers, it works perfectly.
Thanks to everyone for your help
User avatar
BruceSteers
Posts: 1565
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Re: Foreground Fileview

Post 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.
If at first you don't succeed , try doing something differently.
BruceS
Post Reply