visual foxpro

As many of you may have read, HTML5 is the new rage on the web. Although it is not yet fully approved, most modern browsers have already implemented a version that supports HTML5 including IE9.

HTML5 gives us the ability to do things in our browser that was not possible or was very complicated (many lines of code) with the older HTML format specification.

For instance to embed a video in HTML5 all that is needed now is these lines:

<video width="320" height="240" controls="controls">
<source src="http://www.w3schools.com/html5/movie.mp4" type="video/mp4" />
<source src="http://www.w3schools.com/html5/movie.ogg" type="video/ogg" />
Your browser does not support the video tag.… Continue reading

I came across this interesting html5 clock done using the canvas element and since the canvas is quite similar to the gdi+x imgcanvas, i decided to create it using gdi+x.

To change certain properties, open the favourites tab in your property editor and make those changes.

If you require a different size, then just resize the class container and run the form.

Here is a sample form (included) showing different sizes and with some properties changed.

It was quite tough to get this to work since gdi+x uses a funny system
for drawing pies and because of the way i… Continue reading

i have finally got around to posting the videos i took of the swfox 2010 opening session and the keynote speech by craig boyd.

he is unique in his delivery and his passion is evident.

here are the links :
http://www.youtube.com/watch?v=EbgP95rI7AQ
http://www.youtube.com/watch?v=flNvwHIy1FA
http://www.youtube.com/watch?v=85QKbtxtIyA
http://www.youtube.com/watch?v=mM2O0Z3DbzU
http://www.youtube.com/watch?v=JmHb37KxB6Q
http://www.youtube.com/watch?v=knolA3Xgptg

 

hope you enjoy this series.

i was really surprised to receive a communication a while back frm the organisers of this conference, rick , doug and tamar. for those reading this post, they need no further introduction. if you work with fox you have to know them. speakers , authors and generally great people.

i was being invted to attend swfox as a ceil silver ambassador. if you don't know what that is then please look here:

http://www.swfox.net/ambassador.aspx

i was thrilled to bits. suffice to say i was pleasantly surprised at the level of organisation and professionalism that these guys displayed, from start to finish.… Continue reading

I came across this cool code recently and after investigating it further, decided to throw together a vfp frontend for generating the file needed for this.

Basically in windows xp you can have an activedesktop where you can display any html content. so if you have a page of html to display, you can change the display properties of the xp desktop to display this page.

This simple application i created, asks for a video file and generates a html page that you can then set as your activedesktop so that you now get a video, with sound playing. in… Continue reading

i published some ultra simple buttons a while back that were quite lightweight
these had only text and the text was centrally aligned.

since then i have had requests to include the ability to add an icon and so these buttons have been enhanced to include icons as well as text alignment.

two new properties have been added to the favourites tab to allow this:

1. new property - textalignment

0 - middle (default)
1 - left
2
- right

2. new property - buttonicon

if set to an image
(bmp, gif, png,jpg) it will display a 24x24 pixel image… Continue reading

not another set of buttons you might say. actually i developed these buttons for a pos app a while back and finally got round to posting them.

the buttons are simple to use with all properties you need to set in the favourites tab.

ofontname - the name of the font to use
lshowbell - this gives a bell shape to the gradient. basically it changes the style of the button. see the image below.

nbuttoncolour1
nbuttoncolour2 - the 2 colours that will be used for the button when
nbuttontype = 4. use the colour picker to change these.

nbuttontype… Continue reading

in one of my previous posts i described a lightbox class that was activex friendly.
the old post is here: vfp lightbox class - now activex friendly

unfortunately because of the logic used in the class, for large "busy" forms with a large number of objects, it caused a couple of seconds delay before the lightbox was displayed and even then on slower computers the screen update was noticeably slow.

so i had another look at the logic of the previous version and threw away most of the code. the result is a lean, mean lightbox that is very snappy… Continue reading

been a while since i posted anything.

came across a desktop image when browsing the other day and saw this application desktop. it looked doable in vfp so i got stuck in and this is the result.

the class is based on the gdi+x classes from the vfpx site and requires vfp9 sp2 or you will not get transparency.

i kept the class simple with few properties to set but that can be easily changed by anyone because the source is included. all the properties are self explanatory.

so just create a form with a nice background and drop as… Continue reading

after some testing and additional functionality programmed in, i have decided to release this new version of the gdi+x pad - v1.35.

there are a number of enhancements to it, to enable it to be easier to use, which i will list here:

1. the error handler was changed to the older conventional on error from the try...catch style because try...catch was unable to process certain errors and threw up nesting errors. the error handler now handles improper code statements correctly.

2.the image canvas has some additional functionality.

if you move your mouse over the canvas, a white border… Continue reading