Quick Links: Download Gideros Studio | Gideros Documentation | Gideros Development Center | Gideros community chat
WidgetCandy transparent windows? - Gideros Forum

WidgetCandy transparent windows?

bigtunacanbigtunacan Member
edited March 2016 in Introduce yourself
I just started using WidgetCandy and I'm trying to layout some buttons in a stack so I have created a window widget and add the buttons to the window.

I would like to use the Window as an invisible container just for it's auto layout properties.

Is there a way to set the window to transparent, but not the children widgets?
_G.GUI.LoadTheme("theme_1", "themes/theme_1/")
 
_G.GUI.NewWindow(
{
	x      = "center",
	y      = "bottom",
	name   = "Win1",
	theme  = "theme_1",
	width = "40%",
	height = "auto"
} )
 
_G.GUI.NewButton(
	{
		name = "MyButton1",
		x = "auto",
		y = "auto",
		width = "100%",
		parentGroup = "Win1",
		theme = "theme_1",
		caption = "I am a button!",
		textAlign = "center",
		icon = 15,
		onRelease = function() print("button was tapped") end,
	}
)
_G.GUI.NewButton(
	{
		name = "MyButton2",
		x = "auto",
		y = "auto",
		width = "100%",
		parentGroup = "Win1",
		theme = "theme_1",
		caption = "I am another button!",
		textAlign = "center",
		icon = 15,
		onRelease = function() print("button was tapped") end,
	}
)
 
_G.GUI.GetHandle("Win1"):layout(true)

Comments

Sign In or Register to comment.