?
Solved

Changing class in delphi

Posted on 2012-03-16
4
Medium Priority
?
378 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
[X]
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
4 Comments
 
LVL 23

Expert Comment

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

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

Author Comment

by:hrvica5
ID: 37729975
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 23

Accepted Solution

by:
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.
0
 

Author Comment

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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses
Course of the Month10 days, 10 hours left to enroll

765 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