Search found 1114 matches

by cogier
Sunday 14th March 2021 3:22pm
Forum: Component
Topic: MapView - Layer with street and town names
Replies: 18
Views: 13942

Re: MapView - Layer with street and town names

You might like to look at 'PhotoEXIF' that I wrote. It is on the Gambas Farm. This manipulates the URL to get what I wanted. You want more! I notice that the URLs change depending on what feature you request. I have not worked out what all the codes in the URL do, but you can see the changes. Try th...
by cogier
Saturday 13th March 2021 2:26pm
Forum: Project showcase
Topic: Colour Classifier
Replies: 5
Views: 5924

Re: Colour Classifier

Hi Steve,

If you add the following code to the beginning of your Colour Classifier Form_Open() routine it will allow the Form to expand.
 With Me
    .Arrangement = Arrange.Vertical
    .Padding = 5
    .Invert = True
  End With

  PicBox.Expand = True
by cogier
Friday 12th March 2021 2:51pm
Forum: General
Topic: DATA statements - possible in Gambas ?
Replies: 9
Views: 5859

Re: DATA statements - possible in Gambas ?

That code took me back to the ZX Spectrum.

You can store the data in the code like this: -
Public Sub Form_Open()

  Dim fData As Float[] = [3.08, 5.19, 3.12, 3.98, 4.24, 5.08, 5.55, 4.00, 3.16, 3.37]
  Dim iLoop As Integer

  For iLoop = 0 To fData.Max
    Print fData[iLoop]
  Next

End
by cogier
Thursday 11th March 2021 6:19pm
Forum: General
Topic: Drawingarea print
Replies: 2
Views: 2420

Re: Drawingarea print

You can't just print what's on the screen, you will need to Paint the details to the Printer. Have a look at the attached that draws in a DrawingArea and then to the printer. Note the differences in the routines. It should print your name on an A4 sheet. https://www.cogier.com/gambas/BillL.png Test2...
by cogier
Wednesday 10th March 2021 5:28pm
Forum: General
Topic: TableView edit : 'freeze' column(s) ?
Replies: 5
Views: 4208

Re: TableView edit : 'freeze' column(s) ?

Here is my take on this. You can edit Columns 0 & 3 but not 1. The sort is probably not recommended, but it works for me.

Image
TableEdit-0.0.1.tar.gz
(12.38 KiB) Downloaded 273 times
by cogier
Tuesday 9th March 2021 5:35pm
Forum: Project showcase
Topic: InFile
Replies: 38
Views: 25267

Re: InFile

I am not good with Databases, so I'm not qualified to comment on your code. The problem with Task is that if it does nothing you can't see what's gone wrong. If you look at the second Task in InFile (SearchFile.class) on line 27 there is a Print statement. You can see this in your main program by us...
by cogier
Tuesday 9th March 2021 3:58pm
Forum: Project showcase
Topic: InFile
Replies: 38
Views: 25267

Re: InFile

Create a new Gambas Project Copy the GetFiles class from InFiles into your new program then in FMain run this code: - Public sFolder As String = User.Home Public bRecursive As Boolean = False Public sPattern As String = "*" TaskGetFiles As Task Public Sub Form_Open() TaskGetFiles = New Get...
by cogier
Tuesday 9th March 2021 11:14am
Forum: General
Topic: New task doesn't start
Replies: 6
Views: 4066

Re: New task doesn't start

If you are looking for task examples have a look on the Farm for InFile, it has 2 tasks and TaskExample.

You might find this thread interesting, we maxed out all 8 cores of a CPU using Task.
by cogier
Sunday 7th March 2021 12:57pm
Forum: Beginners
Topic: Empty form
Replies: 5
Views: 5185

Re: Empty form

Hi gambasjb,

Welcome to the wonderful world of Gambas. I was going to attach a program, but I thought it might be easier to create a video so have a look here.

(To access the 'Form' double-click on FMain on the left of your screen.)

I hope this helps.
by cogier
Saturday 6th March 2021 6:05pm
Forum: Project showcase
Topic: Clock
Replies: 2
Views: 3281

Clock

Here is an over enginnered clock. Lots of options to choose from.

Let me know what you think.

Image
Analogue_clock-1.0.tar.gz
(84.11 KiB) Downloaded 342 times