Avatar of hrvica5
hrvica5
Flag for Croatia asked on

Changing class in delphi

Hi i have form which is mdichild,

How can i Change class in TForm in run time

Thx
Delphi

Avatar of undefined
Last Comment
hrvica5

8/22/2022 - Mon
Ferruccio Accalai

That's not a class, it's a formstyle

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

ASKER
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
ASKER CERTIFIED SOLUTION
Ferruccio Accalai

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
hrvica5

ASKER
thank you for your help, at least i knopw that i have to make another form
Your help has saved me hundreds of hours of internet surfing.
fblack61