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

Safiur Rahman isafiur at gmail.com
Fri Jan 28 15:08:30 CET 2022


Hi Benoît
Thank you for adding this important feature.
I get a message "Class name hidden by local declaration: Key" shown with
WebTree1_Data on compiling.
Attached a project to reproduce t

On Wed, Jan 26, 2022 at 1:50 PM Safiur Rahman <isafiur at gmail.com> wrote:

> 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
>


-- 
Regards
Safiur Rahman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220128/b622a24a/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: webtree.tar.xz
Type: application/x-xz
Size: 12672 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20220128/b622a24a/attachment.xz>


More information about the User mailing list