Monthly Archives: October 2008

the gdi+x samples have a form that displays a "halo" for text. so taking that idea i adapted it for these glowing buttons.

to use these buttons you will need the gdi+x classes on the vfpx site.

click on the link on this page that says latest release of gdiplusx and download the latest stable release. do not download the beta as that is not complete and may not work properly.

i havd also posted a tutorial on how to use my classes including the supplied builder. you can find the post here. most of the points are… Continue reading

most of you have seen the effect of the vista dialogs where the background of the form appears to move whe the form is moved. while difficult to describe, it is easy to see and even easier to implement for your forms.

obviously if you have vista, then you already have the animated background effect. so this post is aimed at those of us who have upgraded to and still use xp.

this effect is achieved with just 2 lines of code as you will see.

click on either of the images below to view it at full size and… Continue reading

one of the things i wanted was to be able to drop an image object on my form, set its picture property to an image and have the image "reflection" visible, which gives a very good effect.

well now that we have the gdi+x classes that is no longer a wish, but a fact.

this implementation requires the gdi+x classes available from the vfpx site.go get them.

basically the imagecanvas is used, its picture property is set to your picture and the height of the reflection in pixels is set. that is all. note that you can also use the… Continue reading

important note:

gdiplusx uses the pictureval to load a png image into the imgcanvas object to get the transparent effect. vfp9sp1 does not support loading png images using the pictureval property. as such, you must have vfp9 sp2 to use these classes with the gdiplus classes v1.10.

alternately download the 1.20b version but change the rendermode property of my class  to 5. then these classes will work in vfp9 sp1.

i've been working on buttons recently using the gdi+x classes and there have been request for two things. 1. transparent buttons a la vista and taborder for the buttons.… Continue reading

there have been a number of requests for  a tutorial on how to use the gdi+x classes and the shiny glass buttons. i am used to using these classes, so wrongly assumed that all users were up to speed. so i decided to fix that and post a tutorial about how to install and use gdi+x and the button class.

also i have made some updates to the class. it now respects the enabled property. also updated is the builder. tooltips, colours & fonts remembered, and a live form preview, courtesy of paco. download below.

lets go...

step 1 -… Continue reading

in a previous post i showed a class to generate "aqua" buttons using gdi+x from codeplex.

this post is all about some modifications i made to that class to enable me to produce shiny glass buttons. also i did not explain the techniques in obtaining the effect. this post will fix that and i will try to explain as best i can, the inner workings of the class.

the glass button

basically the class uses a subclassed imgcanvas control from the gdiplus.vcx classes that you need to download from the link above. the classes init should not be touched.… Continue reading