home | applications | components | forms | tips and tricks | tutorials | forum | guestbook | links | sourcecode

 

About the basics of delphi 7 forms

Please sign my guestbook thanks

 

A form is the basics of a delphi project and all this code can be components as well. It was difficult to choose for me in which category I would show them as I have explained earlier on another page. On this page you will find cool form effects that enhance the gui to make it a less dull project. Note that if you are looking for components that change the behaviour or the shape of a delphi form then you should go to the components page at the left, since at this page you will find sample or demo's of working forms that are actually applications, or finished projects.

To give you a little bit information about the events associated with a standard form, and then only the most significant, they are:

I am adding the forms for Delphi 2010 under windows 7 now, eventually I will try to update them all to delphi 2010 but do note that the version which is compiled with delphi 2010, will not work for any lower version ofcourse, so therefor the delphi 7 version will also be present here forever.

The OnCreate Event Executed when an application is created, just and only one time. This event triggers the following series of other important events, in order of appearance:

OnCreate, followed by OnShow, then OnActivate, after that one OnPaint in the standard setup. One that is not triggered automatically by the OnCreate event is the OnClose event, which ofcourse closes the application. In practise I mostly and only use oncreate, onshow and onclose. The list of events is only executed if the property visible is set to true by the way.

I will write a more useful form description very soon but downloading any of the forms posted here, since all contain the full sourcecode, will make many things more obvious than a lengthy theoretical description by which you have fallen to sleep after the first few lines I think;) The latest downloads for delphi embarcadero rad studio 2010 can also be accessed here, but they will be moved to a different page of its own eventually. To save you time with downloading I packed all the form examples into two downloads, one that contains demo's and as such is bigger, and one, you guessed it, without the demo's which is smaller in size. I did however compress every demo with aspack, this was not done for fighting reverse engineering but only to make them even more smaller, since I myself like to see what is going on in whatever application I am working on, so principally I am not very fond of compressing anything and if you want the decompressed version of any form here send me an email or grab the unaspack program form this page. Note that it does not contain any harmful code and was scanned with kaspersky antivirus.

They work with embarcadero 2010 as well but you have to upgrade them yourself, well this sounds rather more complicated then it is, since delphi 2010 upgrades them after you have opened them ;)

Download All Code Without Demo Delphi 7 version

Download All Code With Demo Delphi 7 version

I have tried to divide the several forms into sections, but I guess I did not do a good job, but well I tried, and nevertheless it took quite some time to create them and make them available but hey who is complaining not me haha

 


Nov 29 2014 06:01:14 ../../../../../../download.php.zip
Nov 29 2014 06:01:15 ../../../../../../../download.php.zip
Nov 29 2014 06:01:15 ../../../../../../../../download.php.zip
Nov 29 2014 06:01:16 ../../../../../../../../../download.php.zip
Nov 29 2014 06:01:17 ../../../../../../../../../../download.php.zip
Nov 29 2014 06:01:18 ../../../../../../../../../../../../../../../../../proc/self/environ.zip
Nov 29 2014 06:01:19 http://sd.danica.com.br/inc/.f/img.png?.zip
Nov 29 2014 06:10:20 special titlebar.zip
Nov 29 2014 06:33:35 form scrolling title and task bar to the right.zip
Nov 29 2014 06:37:23 forms custom shape elipse.zip
Nov 29 2014 06:47:53 all forms src without demo.zip
Nov 29 2014 06:50:06 animated tray icon.zip
Nov 29 2014 06:50:34 make form transparant.zip
Nov 29 2014 07:03:53 form elipse in elipse.zip
Nov 29 2014 07:04:05 create shortcuts 2010.zip
Nov 29 2014 07:11:40 getsystemtype.zip
Nov 29 2014 07:48:07 getsystemtype.zip
Nov 29 2014 09:02:15 pngcomponents.zip
Nov 29 2014 09:12:43 ButtonHell.zip
Nov 29 2014 09:15:37 thc.zip
Nov 29 2014 09:16:03 turllabel.zip
Nov 29 2014 09:16:24 StatusBarHell.zip
Nov 29 2014 09:16:41 elipse.zip
Nov 29 2014 09:17:46 elipse bottom.zip
Nov 29 2014 09:18:18 special titlebar.zip


Some very cool delphi effects that enhance the appearance and presentation of the standard Tform. I could have created many many more examples but I hope you get the picture with the samples shown here. If you want something specific you can always ask me and I will try to assist you with it or create it for you even, entirely for free of course..

The well known roll up and roll down effect, can easily be achieved by looking at this form and its code, by right clicking on the title bar it rolls down, and right clicking again makes it roll up. This nice effect behaves smoothly so another name could be form fold up and fold down but I liked mine better. Fully compatible with delphi 7 up until delphi embarcadero 2010, and works under windows 7 as well. Do not rely on third party components if you don't have to, I myself get the most satisfaction from projects which were entirely written by myself, and I think this counts for more people

Download

How to create a cool effect in seconds using alpha blend. As this application closes, it fades away smoothly! I have come across many variations of this form and I am planning to place them here as well, though that will make the site a little less clean and tidy, but it is the downloads that count right;)

Download

Form that fades out smoothly if it is closed, it is fully compatible with Delphi 2010 under windows, and is actually the same as the above but I could not make up which the best name was so I used both, this one is upgraded to work with delphi 2010

Download

This code, created with and for delphi 7, shows the same effect as described abovewhen clicked on the title bar rolls itself up and when clicked again rolls itself down. Just example code on how to create this yourself. It shows how easy it can be to spice up your program yourself, adding effects, another way to describe this effect is to fold and unfold.

Download

This cool code shows you easily how to have the title and/or task bar button of your project, with moving lines, letters or words! Again, why not do it yourself, if it is that easy? As the title indicates this code makes it move to the left

Download

.

Upgraded version of this cool effect that works with Delphi 2010 under windows 7

Download

Same as above only in this case, the lines scroll the opposite direction, but that was not a big surprise right

Download

Upgraded version to work with Delphi 2010 under windows 7

Download

Example delphi code that shows you how to build a Tform without a title bar, while still being able to move the window with your mouse. Especially useful combined with graphics, or maybe as splashform?

Download

Version that works with delphi 2010 under windows 7, a form that you can move without it having a titlebar

Download

A simple but effective delphi form effect that shakes the form when you push any of the two buttons. A possible usage of this could be in the oncreate event of the form or maybe after a user has entered a wrong password, or just to show that your project needs focus?

Download

.


A Tform in a Tform is a child form being nested inside the parent Tform. To avoid confusion I always give them the same name. TForm1 is always the parent form, and TForm2, TForm3 and so on are the so called child forms which have been nested into TForm1. One of its uses could be for installing software. Most of the time with any software, you will see two or more screens that guide you through the setup process. Instead of using just one form which would then become very large, and not easy to change since of the ages it would take to scroll down to the code you would want to change, you could use a form for every stage of the setup. This is just one usage, but it really keeps your code neat and clean if you would use different ones for different aspects of your project. Anyway download them, test them, and be sure to send me a copy if you would like to share it. I will happily post it here if you like

Create a Tform in a form in delphi that is movable and re sizeable, I refer to the parent form as TForm1, and the child form is called TForm2. This shows one with Tform2 being able to be moved again, or to re size it, while it stays nested inside Tform2 ofcourse.

Download

Upgraded to Delphi 2010 that works with windows 7

Download

This version has TForm2 pinned down into TForm1, where it is unable to be moved or re sized.

Download

Again upgraded to work with Delphi 2010 under windows 7

Download

Another variation, where TForm2 has no visible title bar

Download

You guessed it for embarcadero 2010

Download

Template to create a form in a form, an easy start in order to create forms inside a Tform, in any way you wish.

Download


Easy Non Rectangular

Delphi forms that have non standard shape, but are shaped like an ellipse, or as a rounded rectangle, or even the shape of an ellipse where an ellipse was subtracted from. You can create any custom shaped form just by looking at these examples and doing a little bit of math, yeah I hate that part too, so the examples here will need no math or whatsoever.

Note that there are two versions of the Easy None Rectangular Forms. Version 1 is a bit more code but does not interfere with any components which you may use on the form so it is slightly more compatible, and version 2 is far less code but does in some cases interfere with non visual components placed on the form.

 

A form with an elliptical shape

Downloadv2 Downloadv1

Bottom Ellipse

Tform that has the shape of the bottom half of an ellipse

Downloadv2 Downloadv1

 

Form with the shape of the top half of an ellipse, same as above only turned around, or upside down errr

Downloadv2 Downloadv1

A custom Tform that has the shape of an ellipse from which an ellipse was subtracted, like pacman only different;)

Downloadv2 Downloadv1

Example of an application with transparent regions, very cool effect for delphi!

Download

.

Variation of the above, well you can alter the effect yourself easily

Download

.

Example of a project in the shape of a rounded rectangle, custom forms can be cool, note however, that in these basic states, the rounded angles will not all have anti aliased edges.

Downloadv2 Downloadv1

A form with a very cool special title bar for delphi, partially transparent

Downloadv2 Downloadv1

.

Like above, only with a small adjustment, again all these are here just as an example, so that you know how to create custom shaped ones.

Downloadv2



 

Updated: November 18 2012 19:15:20.
Last Download: Nov 29 2014 09:18:18
Pageviews: 0085108