Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


Changing class in delphi

Posted on 2012-03-16
Medium Priority
Last Modified: 2012-06-27
Hi i have form which is mdichild,

How can i Change class in TForm in run time

Question by:hrvica5
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
  • 2
  • 2
LVL 23

Expert Comment

by:Ferruccio Accalai
ID: 37729868
That's not a class, it's a formstyle

procedure TForm1.FormCreate(Sender: TObject);
  self.FormStyle := fsNormal;

Author Comment

ID: 37729975
It says cannot make a visible window modal

unit JForm;


  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, Grids, DBGrids, JvExStdCtrls, JvEdit, JvDBSearchEdit, CHILDWIN, StdCtrls,
  JvCheckBox, ExtCtrls, Buttons, JvExControls, JvXPCore, JvXPButtons, ADODB, DB;

  TForm =  class(TMDIChild).....  >>>> i want change this in TForm

LVL 23

Accepted Solution

Ferruccio Accalai earned 2000 total points
ID: 37729995
That meas that your form descends from a TMDIChild form. You cannot change the ancestor on the fly.

Author Comment

ID: 37730021
thank you for your help, at least i knopw that i have to make another form

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

618 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