Add a new form to your app, with File | New Form, or File | New... | Forms | About box.
If you want to rename this form, do it now. Do this by changing the Name in the Object Inspector window, not by editing the form's
type definition. If you save the form now, Delphi will prompt you for a save name. Note that this must be different from the form's type name.
Add it to Form1's uses clause, by going File | Use Unit..., and selecting Unit2 (or whatever you've called it).
When you want to show your new form, in the main form's code, go Form2.Show, or Form2.ShowModal. For the difference between these, see help.
You may have to use a name other than Form2: to see what, go Project | View Source..., and look for a line like:
Code:
Application.CreateForm(TAboutBox, AboutBox);
The second parameter (here, AboutBox) is the name by which you will refer to your new form.
Your About box will typically contain an "OK" or "Close" button. Its ModalResult should be set to mrOK. For more on this, see help on ModalResult.
You can access component values on the new form from the main form's code thusly:
Code:
Form2.Comment.Caption := 'Hello world!';
mystring := Form2.Edit1.Text;
If you want to add significant quantities of text to your About box, add a Memo, and set its ReadOnly to True. -- Doug Burbidge mailto:dougburbidge@yahoo.com