Solved

Passing params to MDI sheet

Posted on 1997-03-30
1
170 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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

809 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