Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5849855
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T13:03:34+00:00 2026-05-22T13:03:34+00:00

So I have a program that runs a simulation When you select the model,

  • 0

So I have a program that runs a simulation

When you select the model, it opens a screen which lets you select “Run the Model”, which opens another screen in which you can press the start button

I want to make a queue so that the user could select multiple models and the program would run through these screens without user input

So, I’m calling a frame like this:

ProgForm := TProgressForm.Create(Self, FModItem);
Self.Visible := False;
try
 ProgForm.ShowModal;

Now, I can get the program to run by adding a line at the end of Create to run the simulation, but the problem is that it doesn’t show the frame until the end of the simulation (since the Create constructor isn’t finished until the run function I called is finished)

I’m not sure what to do, since if I don’t add anything in the Create function I’m calling, there doesn’t seem to be any other way to call any function automatically, but if I do something in Create, the frame isn’t displayed until Create is finished

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T13:03:34+00:00Added an answer on May 22, 2026 at 1:03 pm

    I suggest reading:

    http://delphi.about.com/od/formsdialogs/a/delphiformlife.htm

    You can use the form’s OnShow event to do stuff before the form is fully drawn on the screen.
    OnActivate is usually the best place to do stuff when the form is drawn.

    BTW
    you say Frame, but in your code it says TProgressForm so I’m guessing you mean Form with a Frame inside.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a bash script that runs a simulation program written in Fortran 90,
I have a program that runs osql.exe from microsoft sql server tools directory and
I have a cross platform program that runs on Windows, Linux and Macintosh. My
I have a Visual Studio 2005 C++ program that runs differently in Release mode
I have a PHP script that runs as a CGI program and the HTTP
I have a program that spits out both standard error and standard out, and
I have a program that creates a Windows user account using the NetUserAdd() API
I have a program that uses the mt19937 random number generator from boost::random. I
I have a program that spits out an Excel workbook in Excel 2003 XML
I have a program that monitors debug messages and I have tried using a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.