TextGadget: you can put any html content !!

Share your advanced knowledge/code with the community.
pf shadoko
Posts: 74
Joined: Thu May 26, 2016 11:09 am

TextGadget: you can put any html content !!

Post 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>")

User avatar
useful
Posts: 116
Joined: Tue Feb 25, 2014 1:15 pm

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

Post by useful »

!!!!!!!!!!!!!!!!!!!! :shock: :mrgreen:
2B or not 2B = FF
bbanelli
Posts: 107
Joined: Mon Jul 13, 2015 7:40 am

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

Post by bbanelli »

Wow! Lifehack. :) Is this "expected" behavior and could it be used as long term stable solution?
"If you lie to the compiler, it will get its revenge."
Henry Spencer
http://www.pci-z.com/
the.weavster
Posts: 220
Joined: Sat Mar 01, 2014 3:02 pm

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

Post 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.
Fred
Site Admin
Posts: 1506
Joined: Mon Feb 24, 2014 10:51 am

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

Post by Fred »

Yes, it will remain. SB is HTML based and it won't change.
Post Reply