Passing params to MDI sheet

Posted on 1997-03-30
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?
Question by:ChrisGin
1 Comment

Accepted Solution

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

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

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



Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

757 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now