Window Transparent but not the gadgets, possible?

Just starting out? Need help? Post your questions and find answers here.
User avatar
Caronte3D
Posts: 189
Joined: Sat Nov 23, 2019 5:21 pm
Location: Some Universe

Window Transparent but not the gadgets, possible?

Post by Caronte3D »

Title says all ;)
User avatar
Peter
Posts: 1197
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080
Contact:

Re: Window Transparent but not the gadgets, possible?

Post by Peter »

You'll have to try it out a little:

Code: Select all

OpenWindow(0, 0, 0, 222, 200, "", #PB_Window_ScreenCentered)
ButtonGadget(0, 10, 10, 200, 20, "Standard Button")
ButtonGadget(1, 10, 40, 200, 20, "Left Button", #PB_Button_Left)
ButtonGadget(2, 10, 70, 200, 20, "<b>Right Button</b>", #PB_Button_Right) ; Using HTML markup
ButtonGadget(3, 10,100, 200, 60, "Multiline Button  (longer text gets automatically wrapped)", #PB_Button_MultiLine)
ButtonGadget(4, 10,170, 200, 20, "Toggle Button", #PB_Button_Toggle)

WID = WindowID(0)

! $(v_wid.element).css("background-color","transparent")  
! $(v_wid.content).css("background-color","transparent")  
! $(v_wid.contentFrame).css("background-color","transparent")

; or:

; ! $(v_wid.element).removeClass("spiderwindow")
; ! $(v_wid.contentFrame).removeClass("spiderwindow-content")
User avatar
Caronte3D
Posts: 189
Joined: Sat Nov 23, 2019 5:21 pm
Location: Some Universe

Re: Window Transparent but not the gadgets, possible?

Post by Caronte3D »

Works nice!
Thank you ;)
User avatar
Caronte3D
Posts: 189
Joined: Sat Nov 23, 2019 5:21 pm
Location: Some Universe

Re: Window Transparent but not the gadgets, possible?

Post by Caronte3D »

I can't do it for a MobileUI page :roll:
Post Reply