the windows vista cpt is out and is being downloaded desperately by whoever has the bandwidth. one of the "eye candy" items of vista themes is something called glass forms. when applied, it gives an effect that the form is transparent - like glass.

however don't rush out and set this up since your current graphics card may not support its requirements. also it is a huge resource hog and recommendations are that only a small part of the window should be glassed.

so what should we others who are using xp do then? will vfp support or have support for these effects as we have theme support now? who knows.

anyway i just wanted to show here some eyecandy i am working on in visual foxpro 9 in my spare time. this is very very beta still, but opens up some exciting possibilities, especially since this runs on plain old xp and boring old visual foxpro!

if anyone is interested in further developing on this idea, drop me a line and we can take it from there.

without further ado here are some screen shots from my vfp environment. the background was a temporary setting just to show off the "glass" effect. at the moment i can move the form around but the effect is a bit choppy. there are also some issues with activate etc.

remember this is my beta form running in xp, not vista and some high end graphics card.

mostly remember this is visual foxpro.

the fox rocks!

 the following screens are not running in vista but are running in vanilla xp. no animals were harmed in the production of this effect and neither were any special themes used. this is all pure vfp. click the images to see a larger version.

vfp glass form

 

vfp transparent form

notice that all objects are transparent. not very nice looking.

 

another view of the glass form. all controls are opaque.

16/06/2006

there appears to be some confusion as to what represents a "glass" effect.

the vfp transparent sample is just that - a semi transparent form using the api setlayeredwindowsattributes, and can be achieved with just 4 lines of code to a couple of api's. that is not "glass", just "transparent"

glass as used in reference to vista forms, is where part of the form is transparent and other parts are not. all objects you place on a transparent form will themselves assume the same transparency as the parent form. this is not so in glass forms.with a glass form they will remain opaque

6 Responses to Visual Foxpro does Glass!

Leave a Reply

Your email address will not be published. Required fields are marked *