Page 1 of 1

Gridline colours

Posted: Wednesday 22nd August 2018 9:07am
by Doctor Watson
Hi everyone.

A small introduction : I recently kicked out Windows and changed to Linux Ubuntu. Some 10 years ago I did some programming – amateur, nothing professional – in Real Basic, but I gave up on it when they became Xojo and require you to pay a lot of money if you want to distribute your programme(s). Not something you’re likely to do when you just want to write some freeware.
As I have also a lot of time on my hands, I went looking for a suitable way to take on programming again. So I found Gambas.
My first impression is, that Gambas has a lot in common with Real Basic, so it shouldn’t pose a huge problem to get going (although, after 10 years of inactivity …… )
My first aim is to convert a programme I wrote in Real Basic. It involves a spreadsheet and here is my first question :

The equivalent for building a spreadsheet with Gambas would be TableView or GridView. The problem is, there seems to be no way to set their border colours or cell border colours. They only appear as very faint grey. I would prefer to set them to black. Is this possible?

Re: Gridline colours

Posted: Wednesday 22nd August 2018 6:16pm
by vuott
Hello,
if you want to set the color of cells borders (...a unique color for the grid):
Public Sub Form_Open()
 
  With GridView1
    .Columns.Count = 4
    .Rows.Count = 4
   
' We'll obtain a "red" grid:
    .Children[0].Background = Color.Red
  End With

End

Re: Gridline colours

Posted: Thursday 23rd August 2018 6:45am
by Doctor Watson
Thanks Vuott.
That's exactly what I'm looking for.