Learn the official example-tapplication. createform

Source: Internet
Author: User
Download the source code in this example and run:


Production process:
1. After creating a new project, add form2, form3, form4, and form5;
2. Add a tprogressbar and tlabel respectively on form5 (use the default name );
3. Open the project source code (Project-> View Source) and paste the following files to run the program.
Program project1; uses forms, sysutils, unit1 in 'unit1. PAS '{form1}, unit2 in 'unit2. pa' {form2}, unit3 in 'unit3. pa' {form3}, unit4 in 'unit4. pa' {form4}, unit5 in 'unit5. PAS '{form5}; {$ R *. res} begin application. initialize; with tform5.create (NiL) Do try application. mainformontaskbar: = true; position: = podesktopcenter; progressbar1.max: = 100; show; update; sleep (1000); application. createform (tform1, form1); form1.position: = pow.topcenter; progressbar1.stepby (25); label1.caption: = 'form1 loaded successfully. '; update; sleep (1000); application. createform (tform2, form2); progressbar1.stepby (25); label1.caption: = 'form2 loaded successfully. '; update; sleep (1000); application. createform (tform3, form3); progressbar1.stepby (25); label1.caption: = 'form3 loaded successfully. '; update; sleep (1000); application. createform (tform4, form4); progressbar1.stepby (25); label1.caption: = 'form4 loaded successfully. '; update; sleep (1000); finally free; end; application. run; end.
 
  
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.