Gridline colours

Post

Posted
Rating:
#1 (In Topic #187)
Regular
Doctor Watson is in the usergroup ‘Regular’
 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?

 Old african saying:
You eat an elephant one small bite at a time.
Online now: No Back to the top

Post

Posted
Rating:
#2
Regular
vuott is in the usergroup ‘Regular’
Hello,
if you want to set the color of cells borders (…a unique color for the grid):

Code (gambas)

  1. Public Sub Form_Open()
  2.  
  3.   With GridView1
  4.     .Columns.Count = 4
  5.     .Rows.Count = 4
  6.    
  7. ' We'll obtain a "red" grid:
  8.     .Children[0].Background = Color.Red
  9.  

Europaeus sum !

<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
Online now: No Back to the top

Post

Posted
Rating:
#3
Regular
Doctor Watson is in the usergroup ‘Regular’
 Thanks Vuott.
That's exactly what I'm looking for.

 Old african saying:
You eat an elephant one small bite at a time.
Online now: No Back to the top
1 guest and 0 members have just viewed this.