Pages

C3 Health Services

Visit Official Website 9278982994

Expert Healthcare at Your Doorstep

Monday, 26 November 2012

How to find all the components and controls of a delphi form using ComponentCount method?

How to find all the components and controls of a delphi form using ComponentCount method?

Sometimes in delphi programming, we require to find all the components and controls of the delphi form at runtime and do something with their properties.

For example, we may require to enable or disable all the buttons of the delphi form at runtime. Traditionally, we can do this by setting the enabled property to false or true for each and every button component on the form one by one. But if we don't know the names of buttons beforehand, or the names of button is assigned at runtime, then how can we set the enabled property at design time? For this, we will need to find all the button components at runtime and assign the enabled property.

ComponentCount method is useful here. ComponentCount Method is used to count all the components present on your delphi form. We will use ComponentCount Method to find and disable all the buttons of the your delphi form at runtime. Here is the simple delphi program to illustrate the concept of ComponentCount Method.

procedure MyForm.DisableAllButtons;
var
  i : integer;
begin
  try
    for i := 0 to ComponentCount - 1 do
    begin
      if Components[i] is TButton then //Check whether the component is button or anything else
      begin
        MyForm(Components[i]).Enabled := False;
      end;
    end;
  
  except
    on E : Exception do
    begin
      ShowMessage('Error occured in function DisableAllButtons: ' + E.Message);
      exit;
    end;
  end;
end;

Above procedure finds all the button components of the TMyForm delphi class and disables them in single line of code. No need to figure out all the buttons and then disable them one by one.

4 Top and Commonly Used Reporting Tools in Delphi XE2

4 Top and Commonly Used Reporting Tools in Delphi XE2

Here is the list of top reporting tools and report builders used in delphi programming language. These reporting tools help you in generating reports, formatting reports and then printing the reports. You can also have a preview of your report. A lot of delphi reporting components are available with these tools which you can use to make your delphi application.

Easily create complex reports that are linked directly into your Delphi EXE. Most of the tools from the list provide all the means for you to develop reports, including a report engine, report designer, previewer.

1. FastReport Reporting Tool

FastReport is an add-in component for giving your application the ability to generate reports quickly and efficiently. FastReport provides all the tools you need to develop reports, including a report engine, report designer, previewer, dialog designer, and Pascal-like macro interpreter. With FastReport you can develop reports that meet your cross-platform needs for Windows and Linux.

2. Rave Reports Reporting Tool

Rave Reports combine essential requirements with the easiest yet most powerful visual design environment available. The code based reporting system contains 19 components with over 500 methods, properties, and events and compiles into your application with no external files. Some of its features include word wrapped memos, full graphics, justification, precise page positioning, etc.

3. QuickReport Reporting Tool

QuickReport is a banded report generator written in 100% Delphi code. QuickReport integrates with Delphi and C++Builder almost to the extreme! You design your reports within the Delphi IDE, using the familiar form designer as a report designer. QuickReport is so easy to use, fast and powerful that Borland choose to use it as the standard reporting tool for both Delphi and C++Builder!

4. Virtual Print Engine Reporting Tool

VPE for Windows is a reporting tool for software developers. VPE allows the dynamic creation of documents for screen- and printer output by calling functions during the runtime of your delphi application. The free positioning of graphical objects (i.e. text, images, lines, etc.) by code offers unlimited layout options. Using VPE you can create both reports and lists as well as complete documents and forms.

Simple Delphi Program to show usage of FastReport Delphi Component - Reporting Tool and Report Builder in Delphi

Simple Delphi Program to show usage of FastReport Delphi Component - Reporting Tool and Report Builder in Delphi

FastReport is a delphi component used as a reporting tool and report builder in delphi. FastReport is the most commonly and frequently used reporting tool in delphi. Here is a simple delphi program which will show you how to use fastreport reporting tool in delphi. This simple delphi program will show you how to generate report and print that report in delphi using fastreport reporting tool and report builder.

procedure MyForm.HowToUseFastReport;
begin
  try
    frxReport1.PrepareReport(true); //Prepare the report
    frxReport1.ShowPreparedReport; //Show the prepared report.
    frxReport1.PrintOptions.ShowDialog := False; //Do not show print dialog
    frxReport1.PrintOptions.Printer := YourPrinterName; //Assign Printer Name
    frxReport1.SelectPrinter; //Select this printer
    frxReport1.PrintOptions.Copies := NoOfCopies; //Assign number of copies to be printed
    frxReport1.Print; //Finally print
  except
    on E : Exception do
    begin
      ShowMessage('Error occured in function HowToUseFastReport: ' + E.Message);
    end;
  end;
end;

Explanation:

First of all you have to prepare report and then afterwards show the prepared report using ShowPreparedReport. Now the report will be shown. When you close the report next lines of code will be executed. If you do not want to see the report and just want to print it automatically just commnet the following line:

frxReport1.ShowPreparedReport; //Show the prepared report.

Saturday, 24 November 2012

Read Online Free eBooks, Textbooks, Novels and Plays (Comic, Science Fiction and Romance)

Read Online Free eBooks, Textbooks, Novels and Plays (Comic, Science Fiction and Romance)

Do you want to read free ebooks, textbooks, novels and plays online on various categories like comic, science fiction and romance? Here is the list of websites which will provide you whatever you want. You will find here online free romantic novels, science fiction stories, stories for kids, free online textbooks and plays. You will find free online extensive lecture notes. You will also get many online free literatures. Following websites are full of all kind of stuffs (literature, notes, textbooks, ebooks, science finction and romantic novles, comic stories, romantic plays etc.) in all the major languages spoken worldwide. There are more than one million free ebooks online in all the formats like Kindle, PDF, ePub, Daisy, DjVu and ASCII text. You can download online free ebooks as many as you want. A lot of free online sacred texts are also available. Lets have a look.

1. ReadPrint.com

ReadPrint offers thousands of free books, including novels, poems, fiction, nonfiction, essays, and plays. They were voted one of Time magazine’s best 50 websites in 2010, and for good reason: the site is easy to navigate, and there are over 8000 books here to download for free. The front page offers several different ways to find books, but my personal favorite is browsing through the list of Top Authors; notable picks include Louisa May Alcott, Rudyard Kipling, and Jack London.

2. ManyBooks.net

Check out the most popular titles, special collections, or browse through some covers to see what interests you. ManyBooks offers over 29,000 free ebooks in a wide range of categories, from Adventure to Young Readers. Browse through the most popular downloads, recommendations, and special collections.

3. The Literature Network

This site is organized alphabetically by author. Click on any author's name, and you'll see a biography, related links and articles, quizzes, and forums. Most of the literature here is free; some downloads require a small fee.

4. Free Computer Books

Every computer subject and programming language you can think of is represented here. Free books and textbooks, as well as extensive lecture notes, are available.

5. Librivox.org

Librivox is a dream come true for audiobook lovers. All the books here are absolutely free, which is good news for those of us who have had to pony up ridiculously high fees for substandard audiobooks. Librivox has many volunteers that work to release quality recordings of classic books, all free for anyone to download. If you've been looking for a great place to find free audio books, Librivox is a good place to start.

6. Authorama.com

Authorama features a nice selection of books written in HTML and XHTML, which basically means that they are in easily readable format. Most books here are featured in English, but there are quite a few German language texts as well. Books are organized alphabetically by the author’s last name. Authorama offers a good selection of free books from a variety of authors, both current and classic.

7. Project Gutenberg

Project Gutenberg is one of the largest sources for free books on the Web, with over 30,000 free downloadable ebooks available in a wide variety of formats. Project Gutenberg is the oldest (and quite possibly the largest) library on the Web, with literally hundreds of thousands books available for free download. The vast majority of books at Project Gutenberg are released in English, but there are other languages available. If you already know what you are looking for, search the database by author name, title, language, or subjects. You can also check out the top 100 list to see what other people have been downloading.

8. Scribd

Scribd offers a fascination collection of all kinds of reading materials: presentations, textbooks, popular reading, and much more, all organized by topic. Scribd is one of the Web’s largest sources of published content, with literally millions of documents published every month.

9. International Digital Children's Library

Browse through a wide selection of high quality children's literature here. Check out Simple Search to get a big picture of how this library is organized: by age, reading level, length of book, genres, and more.

10. Ebooks and Text Archives

From the Internet Archive; a library of fiction, popular books, children's books, historical texts and academic books.

11. World Public Library

Technically, the World Public Library is NOT free. But for a measly 8.95 a year, you can gain access to hundreds of thousands of books in over one hundred different languages. They also have over one hundred different special collections ranging from American Lit to Western Philosophy. Worth a look. They also have what they call a Give Away Page, which is over two hundred of their most popular titles, audio books, technical books,a and books made into movies. Give the freebies a try, and if you really like their service, then you can choose to become a member and get the whole collection.

12. Questia Public Library

Questia has long been a favorite choice of librarians and scholars for research help. They also offer a world-class library of free books filled with classics, rarities, and textbooks. More than 5000 books are available for download here, alphabetized both by title and by author.

13. Wikisource

Online library of user-submitted and maintained content. At the time of this writing, over 200,000 pieces of content are available to read.

14. Wikibooks

Wikibooks is an open collection of (mostly) textbooks. Subjects range from Computing to Languages to Science; you can see all that Wikibooks has to offer in Books by Subject. Be sure to check out the Featured Books section, which highlights books that the Wikibooks community at large believes to be “the best of what Wikibooks has to offer, and should inspire people to improve the quality of other books”.

15. Bibliomania

Bibliomania gives readers over 2000 free classics, including literature book notes, author bios, book summaries, and study guides. Books are presented in chapter format.

16. The Open Library

There are over one million books here, all free, all available in PDF, ePub, Daisy, DjVu and ASCII text. You can search for ebooks specifically by checking the "show only ebooks" box under the main search box. Once you've found an ebook, you will see that it will be available in a variety of formats.

17. Sacred Texts

Sacred Texts contains the Web’s largest collection of free books about religion, mythology, folklore and the esoteric in general.

18. Free eBooks

Free eBooks offers a wonderfully diverse variety of books, ranging from Advertising to Health to Web Design. Standard memberships (yes, you do have to register in order to download anything, but it only takes a minute) are free and allow members to access unlimited eBooks in HTML, but only five books every month in the PDF and TXT formats. A VIP membership here gives you unlimited access to any book you want, in any format.

19. Slideshare

Slideshare is an online forum where anyone can upload a digital presentation on any subject. Millions of people utilize SlideShare for research, sharing ideas, and learning about new technologies. SlideShare supports documents and PDF files, and all these are available for free download (after free registration).

20. The Online Books Page

Maintained by the University of Pennsylvania, this page lists over one MILLION free books free available for download in dozens of different formats.

Job Satisfaction and Motivation

Job Satisfaction and Motivation

If you’re overstressed and at risk for job burnout, you may feel that a major life overhaul is necessary for you to be able to enjoy your job and avoid burnout. Before making major changes, this article can help you to better enjoy your situation with a few minor adjustments, and give you food for thought on whether major changes may be necessary. The following suggestions can help you increase job satisfaction:

Be Clear About Job Requirements:

It’s nearly impossible to do a good enough job at your work if you don’t know what the requirements are. Unfortunately, sometimes it’s difficult to know all of the requirements at a job when those in charge are poor communicators. Some bosses and supervisors are vague with expectations, assign new tasks with little advance notice, request new tasks without providing training, and inadvertently set workers up to fail in other ways. While you can’t prevent things like this from happening altogether, you can gain a clearer view of what you need to do and help your situation quite a bit with assertive communication skills. Learn to speak up for yourself in a respectful way and you’ll improve your work life and your relationship, and decrease your risk for burnout.
 
Find Rewards and Recognition:

We all need to feel recognized and rewarded for what we do. If your job doesn’t have built-in opportunities for recognition, or if rewards are infrequent, you may need to add rewards and recognition to your own life. You may decide to take yourself to a movie, have a home spa experience, buy yourself something nice, or give yourself other small but nurturing rewards when you complete a project or complete another month of hard work. You can also team up with a supportive friend and agree to listen to each other’s successes and provide support to one another if you don’t get that support and recognition from your job. These things can nurture you emotionally and remind you of the importance of the work you do, especially if you work in a job or field where these rewards are sparse.
 
Maintain a Balanced Lifestyle:

Keeping balance in your lifestyle is important; if it’s all work and no play, you may find your ability to work beginning to wane. In order to maintain balance in your lifestyle, the first step is to take an overview of your current lifestyle and see which areas are out of balance. Do you have enough time for relationships, hobbies, sleep, self care, exercise, healthy eating, and other important features of a healthy lifestyle, in addition to your work responsibilities? If not, the next step is to look at your priorities and make some changes so that your lifestyle reflects them better.

Think Positive:
You can usually change your experience of your current circumstances by changing your attitude about them. Developing an optimistic point of view and changing negative self talk patterns can go a long way toward helping you see the glass half-full, as well as actually making you more productive and less stressed! Assess your current state of mind, and make some changes in yourself so that you see things in a more positive light, and you may just find you’re much happier where you are in life!

Know Yourself and Work With Your Personality:

Certain features of your personality make some jobs a better fit for you than others. If you’re in a job that’s not well-suited for your personality, you may be putting yourself under unnecessary stress every day you go to work. The following are some good questions to ask yourself:
 
Do you like to work toward deadlines, or do you like your tasks to come in a relatively steady stream?
Do you like to work as part of a team, or independently?
Do you like things to be structured and routine, or loose and variable?
Do you enjoy being a ‘big fish in a small pond’, or would you like to be a ‘small fish in a big pond’? (Meaning, would you like to be a small part of a large company or a large part of a small company, or something else?)
Do you believe in what you do, and is it important to you that you do?

These questions and others can give you a better picture of what kind of work would be best for you. If you find you’re not in the type of position that’s ideal for you, you can see if you can make additional changes in your job’s structure to make it fit better with your needs, or you might think of what jobs might be better suited for you and see if working toward a change in jobs is a good idea for you.

About the Author

I have more than 10 years of experience in IT industry. Linkedin Profile

I am currently messing up with neural networks in deep learning. I am learning Python, TensorFlow and Keras.

Author: I am an author of a book on deep learning.

Quiz: I run an online quiz on machine learning and deep learning.