[Gambas-user] Different Foreground Color of a string in TableView.Cell

Ru Vuott vuott at ...325...
Sat Mar 5 16:33:25 CET 2016


...I'ld suggest:


Public Sub Form_Open()

  TableView1.Rows.Count = 2
  TableView1.Columns.Count = 2

  TableView1[0, 0].RichText = "<TABLE><TR><td><FONT Color=red>Verba</td><TD><FONT Color=green>volant</td></tr></table>"

  TableView1.Columns[0].Width = -1

End



regards
vuott






--------------------------------------------
Sab 5/3/16, Charlie <charlie at ...2793...> ha scritto:

 Oggetto: Re: [Gambas-user] Different Foreground Color of a string in	TableView.Cell
 A: gambas-user at lists.sourceforge.net
 Data: Sabato 5 marzo 2016, 15:09
 
 This works for me: -
 Public Sub Form_Open()
 TableView1.Rows.Count = 2
 TableView1.Columns.Count = 2
 With TableView1[0, 0]
  
 .Background = Color.Yellow
   .Foreground =
 Color.Red
   .Text = "Hello"
   .Alignment = Align.Center
  
 .Font.bold = True
 End With
 End
 
 
 
 --
 View this
 message in context: http://gambas.8142.n7.nabble.com/Different-Foreground-Color-of-a-string-in-TableView-Cell-tp55597p55598.html
 Sent
 from the gambas-user mailing list archive at Nabble.com.
 ------------------------------------------------------------------------------
 _______________________________________________
 Gambas-user mailing list
 Gambas-user at lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user




More information about the User mailing list