Bug? CSBuilder – Clickable word problem

AppLex

New Member
Licensed User
I noticed that clickable words created with CSBuilder do not work as expected when they are not preceded or followed by other text.

B4X:
Dim cs3 As CSBuilder

cs3.Initialize.Size(18).Append(CreateClickableWord("No l./t. space")).PopAll

Label4.Text = cs3  'label text is centered

cs3.EnableClickEvents(Label4)

In this case, the click event also fires when you click the label (not the clickable word).

It is possible to work around the issue by appending Chr(0) before and/or after the clickable word:

B4X:
Dim cs5 As CSBuilder

cs5.Initialize.Size(18).Append(Chr(0)).Append(CreateClickableWord("Click me")).Append(Chr(0)).PopAll

Label7.Text = cs5

cs5.EnableClickEvents(Label7)

Would it be possible to implement a fix to this issue in the CSBuilder library?

Attached please find a small project that demonstrates the issue.
 

Attachments

  • Clickable word.zip
    8.1 KB · Views: 224
Top