[Gambas-user] How to set HTML text in WebTree

Safiur Rahman isafiur at gmail.com
Wed Jan 26 09:05:25 CET 2022


Hi

The HTML text in WebTree is not displayed in HTML form but in plain text.

I am using in following way:

Dim pic1 As String
  Dim pic2 As String

  Dim i As Integer
  Dim j As Integer

  pic1 = "icon:/small/menu"
  pic2 = "icon:/small/blue"

  WebTree1.Columns.Count = 3
  With WebTree1
    .Columns[0].Text = "Key"
    .Columns[1].Text = "Text"
    .Columns[2].Text = "Time"
  End With

  For i = 0 To 9
    WebTree1.Add(CStr(i), CStr(i), pic1)

    For j = 0 To 5
      WebTree1.Add(CStr(i) & ":" & CStr(j), CStr(i) & ":" & CStr(j), pic2,
CStr(i))

      WebTree1[CStr(i) & ":" & CStr(j)][1] = "<b>Number:</b>" & CStr(i) &
CStr(j)
      WebTree1[CStr(i) & ":" & CStr(j)][2] = CStr(Now())
    Next

  Next

The "Number" is not displayed in bold. Attached a project



-- 
Regards
Safiur Rahman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220126/6c8f0072/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: webtree.zip
Type: application/zip
Size: 15282 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220126/6c8f0072/attachment-0001.zip>


More information about the User mailing list