Page 1 of 1

Put HTML code, instead of text, as Gadget text???

Posted: Sun Apr 01, 2018 1:15 am
by ehbarba
Is there a way to put HTML code, instead of only text, using SETGadgetText() or SetGadgetItemText(), or a way toget around it?

Re: Put HTML code, instead of text, as Gadget text???

Posted: Sun Apr 01, 2018 9:44 am
by Peter
ehbarba wrote:Is there a way to put HTML code, instead of only text, using SETGadgetText() or SetGadgetItemText(), or a way toget around it?
something like this?

Code: Select all

OpenWindow(0, 0, 0, 270, 160, "TextGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
TextGadget(0, 10,  10, 250, 20, "TextGadget Standard (Left)")
SetGadgetText(0, "<b>Bold</b> and <u>underlined</u> text")
Image

Greetings ... Peter

Re: Put HTML code, instead of text, as Gadget text???

Posted: Sun Apr 01, 2018 6:02 pm
by ehbarba
Precisely like this, but for ListIconGadget, in SetGadgetItemText()?

Thanks in any way Peter, for your support.

Re: Put HTML code, instead of text, as Gadget text???

Posted: Mon Apr 02, 2018 2:20 am
by ehbarba
Now I understand that it can not be done in ListIconGadget, but I'll do with TextGadget.

Thank you Peter