Page 1 of 1
Question about Webgadget, border
Posted: Wed Oct 19, 2016 11:38 am
by StoneOakvalley
So, naturally WebGadget in Spiderbasic is just an IFrame, correct?
So how can I control the frameborder="0" to the Webgadget?
I want to control the iframe border, even colors for that. Mostly, the option for turning it off completely.
InlineJS, Css magic within the SpiderBasic code?
Re: Question about Webgadget, border
Posted: Wed Oct 19, 2016 12:18 pm
by Peter
StoneOakvalley wrote:So, naturally WebGadget in Spiderbasic is just an IFrame, correct?
it's an IFrame inside a Div. And the Div has the border (Class: 'sbWebBorder').
Removing the border:
Code: Select all
If OpenWindow(0, 0, 0, 600, 300, "WebGadget", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
WebGadget(0, 10, 10, 580, 280, "http://www.spiderbasic.com")
EndIf
WB = GadgetID(0)
! $(v_wb.div).removeClass("sbWebBorder");
Greetings ... Peter
Re: Question about Webgadget, border
Posted: Thu Oct 20, 2016 10:30 am
by StoneOakvalley
Ahh, excellent, worked as intended. Thanks!
Re: Question about Webgadget, border
Posted: Tue Oct 25, 2016 7:32 am
by StoneOakvalley
Seems I have problems trying to identify the actual CSS used for the ButtonImageGadget().
Is there a override for turning/controlling the border around that too similar to your solution for WebGadgets?
ButtonImageGadget(0, 10, 10, 100, 83, ImageID(0))
To me, since SB is web application based, every gadget should have the flag #PB_Border applied to them. Some gadgets have that option already, even from PureBasic legacy, (calender, textgadget, containergadget etc). Fred, what's your opinion on that, every gadget gets the #PB_Border would be nice
