Solved

Passing params to MDI sheet

Posted on 1997-03-30
1
178 Views
Last Modified: 2010-04-06
When creating an MDI sheet at runtime, how do I pass it parameters which can be used in the OnCreate() event?
0
Comment
Question by:ChrisGin
1 Comment
 
LVL 3

Accepted Solution

by:
sperling earned 50 total points
ID: 1335079
In your child form source:

type
  TMDIChild = class(TForm)
  .
  .
  public
    constructor CreateWithParams(AOwner : TComponent; AParameter : STRING);
    .
 

constructor TMDIChild.CreateWithParams(AOwner : TComponent; AParameter : STRING);
begin
  inherited Create(AOwner);
  // Do your OnCreate code here instead.
end;

Regards,

Erik.
0

Featured Post

Independent Software Vendors: 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…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

733 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