FileBox

Post your Gambas Components here.
Post Reply
User avatar
BruceSteers
Posts: 780
Joined: Thursday 23rd July 2020 5:20pm

FileBox

Post by BruceSteers » Saturday 08th January 2022 5:08pm

So you know how there was a FontBox, a DirBox, DateBox, etc but no FileBox.

I though as something to do for Ben (and everyone) as a Christmas present I could copy the DirBox control and edit it to be a FileBox :)

So now there is a FileBox :)
https://gitlab.com/gambas/gambas/-/comm ... 79d92b1da5

It has the following properties...

SaveFile As Boolean , Default is an OpenFile dialog, set this as true for a SaveFile dialog
Picture =Picture , Use a different picture on the button to the default file icon
PlaceHolder , you know what that is.
Filter , same as Dialog.Filter
Title , Set a Title for the dialog
Path , a synonym for Value.
The Path/PlaceHolder and Filter properties are visible in the IDE form designer
Path property was also made visible in form designer for DirBox

So happy belated Christmas to you all :)

Note: this isn't really a component to showcase as it's now a part of gambas and i can't really take credit for it as it's just Benoits DirBox.class with a few edits.
Last edited by BruceSteers on Saturday 15th January 2022 9:44pm, edited 1 time in total.
Wishing well
Bruce

If at first you don't succeed , try it differently.

User avatar
cogier
Site Admin
Posts: 825
Joined: Wednesday 21st September 2016 2:22pm
Location: Guernsey, Channel Islands

Re: FileBox

Post by cogier » Sunday 09th January 2022 3:57pm

This may seem a stupid question, but how do you download a program from GitLab? I can do it from GitHub. I managed to download a file with a very cryptic name (gambas-93afd49f7c129ad8acac46b4aa123479d92b1da5) but that wasn't too much help. :? :shock:

User avatar
BruceSteers
Posts: 780
Joined: Thursday 23rd July 2020 5:20pm

Re: FileBox

Post by BruceSteers » Sunday 09th January 2022 4:41pm

cogier wrote:
Sunday 09th January 2022 3:57pm
This may seem a stupid question, but how do you download a program from GitLab? I can do it from GitHub. I managed to download a file with a very cryptic name (gambas-93afd49f7c129ad8acac46b4aa123479d92b1da5) but that wasn't too much help. :? :shock:
There is a download button in the gitlab page that'll let you select zip gz etc
Or in a terminat type
git clone https://gitlab.com/gambas/gambas.git

That URL can also be found on any gitlab page
Git clone will create a folder in the current dir called gambas
Wishing well
Bruce

If at first you don't succeed , try it differently.

User avatar
BruceSteers
Posts: 780
Joined: Thursday 23rd July 2020 5:20pm

Re: FileBox

Post by BruceSteers » Sunday 09th January 2022 4:43pm

Sorry

git clone --depth=1 https://gitlab.com/gambas/gambas.git

Will only download the main branch not the whole repository
Wishing well
Bruce

If at first you don't succeed , try it differently.

User avatar
BruceSteers
Posts: 780
Joined: Thursday 23rd July 2020 5:20pm

Re: FileBox

Post by BruceSteers » Sunday 09th January 2022 4:46pm

The FileBox.class is here...
https://gitlab.com/gambas/gambas/-/blob ... eBox.class

There is a download icon on the page
Direct link...
https://gitlab.com/gambas/gambas/-/raw/ ... line=false
Wishing well
Bruce

If at first you don't succeed , try it differently.

User avatar
BruceSteers
Posts: 780
Joined: Thursday 23rd July 2020 5:20pm

Re: FileBox

Post by BruceSteers » Sunday 09th January 2022 5:03pm

cogier wrote:
Sunday 09th January 2022 3:57pm
This may seem a stupid question, but how do you download a program from GitLab?
I dont mind silly questions because now I've thought about it I realize my first answer was probably a silly answer 😄
Wishing well
Bruce

If at first you don't succeed , try it differently.

Post Reply