Window Transparency

BlitzMax Forums/Brucey's Modules/Window Transparency

Brucey(Posted 2008) [#1]
Seems to be all the rage in the MaxGUI world...

But, want to use it with wxMax? SetTransparent() is your friend...
SuperStrict

Framework wx.wxApp
Import wx.wxFrame

New MyApp.run()

Type MyApp Extends wxApp

	Field frame:wxFrame

	Method OnInit:Int()
	

		frame = wxFrame.CreateFrame(,,"Hello World",,,300, 300)
		frame.SetTransparent(128)
		frame.Center()
		frame.show()

		Return True
	
	End Method

End Type


:-p


plash(Posted 2008) [#2]
Schweet. I never had a need for transparent windows though, which is odd.


Armitage 1982(Posted 2008) [#3]
yeah me too but nice little function.
Is there any similar "animation" fade-in(open) fade-out(close) like you can encounter with XP GUI ?
Not very useful but pretty nice when your app's done.


Brucey(Posted 2008) [#4]
I suppose you could "fake" it, changing the transparency over a given time-period. It might work quite well. (or it might not :-)


Armitage 1982(Posted 2008) [#5]
Indeed this is very possible !
But i was more thinking about those moving, jumping and poping windows. I remember when trying PureBasic playing with those which seem to be built-in XP. They are not often use though (i can't remember seeing any program popup this way to tell the truth).
But well this is a pretty useless functionality i must admit ^^