Page 1 of 1

Window Transparent but not the gadgets, possible?

Posted: Thu Oct 17, 2024 6:42 pm
by Caronte3D
Title says all ;)

Re: Window Transparent but not the gadgets, possible?

Posted: Thu Oct 17, 2024 7:08 pm
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")

Re: Window Transparent but not the gadgets, possible?

Posted: Fri Oct 18, 2024 5:34 am
by Caronte3D
Works nice!
Thank you ;)

Re: Window Transparent but not the gadgets, possible?

Posted: Sat Oct 19, 2024 11:44 am
by Caronte3D
I can't do it for a MobileUI page :roll: