• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 391
  • Last Modified:

Changing class in delphi

Hi i have form which is mdichild,

How can i Change class in TForm in run time

Thx
0
hrvica5
Asked:
hrvica5
  • 2
  • 2
1 Solution
 
Ferruccio AccalaiSenior developer, analyst and customer assistance Commented:
That's not a class, it's a formstyle

procedure TForm1.FormCreate(Sender: TObject);
begin
  self.FormStyle := fsNormal;
end;
0
 
hrvica5Author Commented:
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
 
Ferruccio AccalaiSenior developer, analyst and customer assistance Commented:
That meas that your form descends from a TMDIChild form. You cannot change the ancestor on the fly.
0
 
hrvica5Author Commented:
thank you for your help, at least i knopw that i have to make another form
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now