Welcome to Foxite.COM Community Weblog Sign in | Join | Help

Bernard Bout

May the Fox be with you...




Visual Foxpro does Glass!

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

Published Thursday, June 15, 2006 10:38 AM by bbout

Comments

# re: Visual Foxpro does Glass! @ Saturday, July 29, 2006 6:46 PM

Thats really great. Is the form Title bar your doing or is it a theme..if so it really great to know that vfp can deliver a stunning user interface just like the dot net pplication

 

 

nyron

# re: Visual Foxpro does Glass! @ Thursday, August 03, 2006 6:04 PM

No Themes. That would be cheating. This is all pure VFP with some API's

Bernard Bout

# re: Visual Foxpro does Glass! @ Friday, September 29, 2006 9:40 PM

Hello he is fantastic what it is possible to be done with VFP, me podrias to send the example.. Thanks finsters@hotmail.com

Carlos

# re: Visual Foxpro does Glass! @ Monday, November 20, 2006 3:28 PM

!!Great!! VFP Always Rocks
By the way when we can see the vfp code?

It's already there in later posts

Ernesto Camara

# re: Visual Foxpro does Glass! @ Monday, December 11, 2006 8:32 PM

Hello, Is fantastic what it is possible to be done with VFP, please send the example a email edwin@espinoza.as

Edwin Espinoza Leon

# re: Visual Foxpro does Glass! @ Friday, December 22, 2006 12:02 PM

Hi!
It's nice. It's simple. It's XP... It's perfect!!
As you said... VFP Rocks!

Can you send me the example?
Thank you very much, Merry Christmas and sorry for my English (it's very very bad :( )

gonzalorc@gmail.com

Bye

Merry Christmas to you too. The example is in the blog post later.

 

Zalo

New Comments to this post are disabled
Powered by Community Server, by Telligent Systems