Page 1 of 1

TextGadget: you can put any html content !!

Posted: Fri Oct 13, 2017 12:10 pm
by pf shadoko
Hi,

I tried in vain by many means to display a video allowing the full screen via a webgadget.

but using a textgadget...

Code: Select all

OpenWindow(0, 0, 0, 800, 450, "Méli Mélo - Bzz !", #PB_Window_ScreenCentered)
TextGadget(1,0,0,800,450,"<iframe width='800' height='450' src='https://www.youtube.com/embed/zaIwKNyzxgY' frameborder='0' allowfullscreen></iframe>")
or

Code: Select all

OpenWindow(0, 0, 0, 800, 450, "Méli Mélo - Bzz !", #PB_Window_ScreenCentered)
img.s=Chr(34)+"https://cdn.pixabay.com/photo/2017/10/12/21/22/pattern-2846017__340.jpg')"+Chr(34)
TextGadget(1,0,0,800,450,"<iframe width='800' height='450' style='background-image:url("+img+"></iframe>")


Re: TextGadget: you can put any html content !!

Posted: Fri Oct 13, 2017 12:25 pm
by useful
!!!!!!!!!!!!!!!!!!!! :shock: :mrgreen:

Re: TextGadget: you can put any html content !!

Posted: Fri Oct 13, 2017 6:50 pm
by bbanelli
Wow! Lifehack. :) Is this "expected" behavior and could it be used as long term stable solution?

Re: TextGadget: you can put any html content !!

Posted: Sat Oct 14, 2017 8:21 am
by the.weavster
bbanelli wrote:Is this "expected" behavior and could it be used as long term stable solution?
I also hope this functionality will remain, it's very cool.

Thanks @pf shadoko for demonstrating this.

Re: TextGadget: you can put any html content !!

Posted: Sat Oct 14, 2017 9:12 am
by Fred
Yes, it will remain. SB is HTML based and it won't change.