Solved

Show an "about"-form

Posted on 1998-04-19
3
145 Views
Last Modified: 2010-04-06
Hello,

I have made a simple application. Now I want to show an "About..."-form. I did this with

AboutFrm.Visible:=true;

This works, but when I press the Close-button on this About-form, the Main-form will start over from the beginning.
How can I show a second form without starting over the main form again when I close this second form?

Thanx !!

Stefan van Roosmalen.
0
Comment
Question by:roosiedb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 3

Expert Comment

by:KE
ID: 1335166
What do you mean by starting the main form over ?

You could try to use this one, which is normal for about boxes:
AboutBox.ShowModal;
It requires an "OK" button with a value in the ModalResult property.
0
 

Author Comment

by:roosiedb
ID: 1335167
Well, I want to use (let's say) 5 different forms in ONE application. When I want to show (and activate) the About-form, or the Search-form, or the Configuration-form, or ....
How can I do that without having the problem my Mainform-onActivate-event will start over again when I close the other forms.
0
 
LVL 1

Accepted Solution

by:
AndersWP earned 50 total points
ID: 1335168
Basically you can not, unless you want to be tricky, which I do not think is necessary.

The OnActivate event is intended to be used for just this. It signals that the focus has returned to the form.

It sounds to me like you have some initialization code hooked to the OnActivate event, and you get problems when the event fires again when the About-form closes. The simple solution to this is not to use the OnActivate event to execute initialization code. Instead, use OnShow or OnFormCreate. OnShow is fired each time the form is made visible, while OnFormCreate is fired exactly once during the lifetime of the form. Depending on the initialization you do, either event could be appropriate.

I hope this will help.

Greetings,
AndersWP
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Suggested Courses
Course of the Month8 days, 23 hours left to enroll

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question