Solved

Changing class in delphi

Posted on 2012-03-16
4
363 Views
Last Modified: 2012-06-27
Hi i have form which is mdichild,

How can i Change class in TForm in run time

Thx
0
Comment
Question by:hrvica5
  • 2
  • 2
4 Comments
 
LVL 22

Expert Comment

by:Ferruccio Accalai
Comment Utility
That's not a class, it's a formstyle

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

Author Comment

by:hrvica5
Comment Utility
It says cannot make a visible window modal


unit JForm;

interface

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

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


thx
0
 
LVL 22

Accepted Solution

by:
Ferruccio Accalai earned 500 total points
Comment Utility
That meas that your form descends from a TMDIChild form. You cannot change the ancestor on the fly.
0
 

Author Comment

by:hrvica5
Comment Utility
thank you for your help, at least i knopw that i have to make another form
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

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…
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…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

772 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

13 Experts available now in Live!

Get 1:1 Help Now