Search found 57 matches
- Tuesday 1st June 2021 7:11pm
- Forum: General
- Topic: Exclude files from being displayed in a FileView control
- Replies: 10
- Views: 7149
Re: Exclude files from being displayed in a FileView control
I have done a little testing and found that all the proposed Filters above will hide .odt files as well, I'm not sure why. Filter it because .txt has the letter "t" and .odt also, which indicates that something is not right in this way of filtering. I checked by changing .txt to .csv and ...
- Tuesday 1st June 2021 6:43pm
- Forum: Component
- Topic: Function Rotate(Angle As Float) As Image
- Replies: 13
- Views: 11855
Re: Function Rotate(Angle As Float) As Image
If I get this... I can make some awesome gauges in Inkscape and have the dials rotate as needed. Hi Jerry, It is possible to use svg files in the graphic interfaces of gambas in different controls, from buttons to picturebox, the quality is excellent, it has no comparison with a pixel image. Here i...
- Tuesday 1st June 2021 11:55am
- Forum: General
- Topic: Exclude files from being displayed in a FileView control
- Replies: 10
- Views: 7149
Re: Exclude files from being displayed in a FileView control
does this work... [EDITED] Ok, i was checking the previous proposal and there are some errors. This version works perfect ! it was... FileView1.Filter = ["*[^.csv][^.txt]"] https://i.imgur.com/rwB71bV.png But now FileView1.Filter = ["*[^{.csv},{.txt}]"] https://i.imgur.com/iopMM...
- Tuesday 1st June 2021 9:41am
- Forum: General
- Topic: Exclude files from being displayed in a FileView control
- Replies: 10
- Views: 7149
Re: Exclude files from being displayed in a FileView control
I specifically want to display all files in a directory EXCEPT "*.html" and "*.txt" files I try to filter, but not success maybe altering the class FileView.class adding Property Excuded As String[] '... Private Function CheckExcluded(sFile As String) As Boolean Dim sExcluded As...
- Tuesday 1st June 2021 8:27am
- Forum: Project showcase
- Topic: Config class + Json file
- Replies: 0
- Views: 5171
Config class + Json file
Hello friends. I would like to present you a method to manage the configuration of a program, which I find interesting. Together with TercoIDE we prepared this example in which in a class there are all the parameters of a program and with great flexibility can be added more. Then in any other part o...
- Thursday 20th May 2021 3:02pm
- Forum: General
- Topic: How to extend any class
- Replies: 6
- Views: 3818
Re: How to extend any class
Hmm actually it looks like gb.util just does the same as you do by making a String.class so i guess your way will be sound unless you use gb.util Its correct, indeed my two targets are File.class & String.Class both inside gb.util But i test in a project (tradukisto) at the same time gb.util an...
- Thursday 20th May 2021 12:16pm
- Forum: General
- Topic: How to print using paint ?
- Replies: 0
- Views: 5070
How to print using paint ?
Hi, I want to print in my local printer with paint from two sources an SVG file and a Paint class. I use as base the Printing_Example from Cogier, in Gambas Farm, then i modify it. Public Sub ButtonPrint_Click() If PrinterOne.Configure() Then Return PrinterOne.Print End Public Sub PrinterOne_Draw() ...
- Thursday 20th May 2021 11:14am
- Forum: General
- Topic: How to extend any class
- Replies: 6
- Views: 3818
Re: How to extend any class
oops i forgot to Trim() may not be as fast now. Still faster that the original function: 13.617 vs 7.294 I guess if you have no problems then go for it Hehe, that's true, although problems usually come without you calling them. Problem solving is what brought us to where we are, (I mean humanity), ...
- Thursday 20th May 2021 7:58am
- Forum: General
- Topic: How to extend any class
- Replies: 6
- Views: 3818
Re: How to extend any class
I do not think it is a good idea to name classes with the same name as already existing internal classes. I was thinking the same thing, but so far there are no conflicts, I guess because I don't overwrite existing methods. It's an experiment to tune some functions that I would like to add to the r...
- Wednesday 19th May 2021 9:22pm
- Forum: General
- Topic: SVG - The fantastic format
- Replies: 0
- Views: 4336
SVG - The fantastic format
Hi, there are some (see below) post about using SVG instead PNG or other image format. I fully agree that it is OK to use SVG because, as seen in the other posts, it is more versatile and the image quality is superior. I would like to comment on other aspects, to broaden the horizons of this format....