[Gambas-user] R: GridView and RichText

Ru Vuott vuott at ...325...
Fri Nov 27 13:32:20 CET 2015


I suggest......exemplum:


Private s As New String[3, 3]


Public Sub Form_Open()

  With GridView1
    .Rows.Count = 3
    .Columns.Count = 3
  End With
  
  s[1, 0] = "<FONT Color=#0000FF>Blue"
  s[1, 1] = "<B>bold"
  s[1, 2] = "<I>italic"

End



Public Sub GridView1_Data(Row As Integer, Column As Integer)

   If (Row = 1) And (Column = 1) Then GridView1.Data.Background = Color.SetAlpha(&FF0000, 240)
   If (Row = 1) And (Column = 2) Then GridView1.Data.Background = Color.SetAlpha(&FFFF00, 240)
   
   GridView1.Data.RichText = s[Row, Column]

End







--------------------------------------------
Ven 27/11/15, Rolf-Werner Eilert <eilert-sprachen at ...221...> ha scritto:

 Oggetto: [Gambas-user] GridView and RichText
 A: gambas-user at lists.sourceforge.net
 Data: Venerdì 27 novembre 2015, 09:47
 
 In a GridView, I have this line (and
 similar ones) in the Data event:
 
 tbk.Data.RichText = "<i><b><font
 color=\"#0000FF\">" & ktText[Row] & 
 "</font></b></i>"
 
 But it doesn't do anything to the text. Here the text should
 be italics, 
 bold and blue.
 
 What am I doing wrong?
 
 Regards
 Rolf
 
 
 ------------------------------------------------------------------------------
 _______________________________________________
 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