Space() doesn't work in TextGadget()

Found an issue in SpiderBasic ? Please report it here !
Posts: 96
Joined: Sat Mar 24, 2018 1:33 pm

Space() doesn't work in TextGadget()

Post by munfraid »

The command Space() works as expected, but if you pass the string to a TextGagdet() the amount of spaces more than 1 are ignored.

Code: Select all

text.s = "A" + Space(10) + "B"
Debug text

OpenWindow(0, 100, 100, 400, 300, "")
TextGadget(0, 0, 0, 400, 300, text)
The reason is that the Textgadget uses Html, so you need to use " " to display additional spaces.

Don't know if this is really to call a bug, but imo it should be mentioned in the docs to avoid confusion.