Solved

My first Question

Posted on 2000-05-21
7
138 Views
Last Modified: 2010-04-04
Hello i am Avi, new programer in Delphi.
I am working with the delphi-3.

I understend that the form1 object is creating Atomaticly. And i tryed few time to create insted of Tform1 deferent class name that also inherited from Tform and i like that insted of the defult form1 will be my new name object. I tryed deferent way but i still have the form1 that created automatic. I am sure that it simple but i have no one to asked ? can you help me ? many thanks
Avi    
   
0
Comment
Question by:avi_shina
  • 3
  • 3
7 Comments
 
LVL 1

Expert Comment

by:sistudio041900
Comment Utility
by default all forms that you add to project are auto-created when your application starts, one of them (first one you created) will be set as main form by default. you can change the forms that are auto created and also the main form form Menu Project/Options...
if you want to create custom forms you eed to download custom form package (but I dont think you asked for custom forms)
sorry if my answer is offtopic to your question, your question isnt so easy to understand.
0
 

Author Comment

by:avi_shina
Comment Utility
I already anderstand that as default all forms that i add to project are auto-created when my application starts, one of them (first one i created) will be set as main form by default. i also can change the forms that are auto created and also the main form form Menu Project/Options...
But my question is how to define a deferent class insted of Tform1.
Foe example insted of Tform will be    Tmain that inherited also from TForm and the object will be Fmain (insted of Form1).
I hope you anderstand me better...
Have a nice day...
Many thanks
 
0
 
LVL 1

Expert Comment

by:sistudio041900
Comment Utility
ok I see.

http://www.geocities.com/SiliconValley/Way/9006/cfpack.html

by default you can not derive forms from anything else exept TForm. the url above does allow to us Forms based on your own forms...

is that the answer?
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:avi_shina
Comment Utility
No, i maen how can i create the folowing source  
(insted of Tform1 i am giving my name
TMain and insted of Form1 will be Fmain.

like here:



unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs;

type
  Tmain = class(TForm)
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  FMain : Tmain;

implementation

{$R *.DFM}

end.
0
 
LVL 1

Expert Comment

by:sistudio041900
Comment Utility
Oh, thats easy...
just change the name of your form to 'Main' with Object Inspector, your PAS source file will be modififed exactly the wayt you wanted.
0
 
LVL 4

Accepted Solution

by:
Romi Kuntsman earned 20 total points
Comment Utility
You can easily change "TForm1" to "TMain" by changing the "Name" feild of "TForm1" in the object inspector.
0
 

Author Comment

by:avi_shina
Comment Utility
I KNEW THAT ITS EASY BUT I REALLY SPENT ALOT FOR THIS ...
MANY THANKS
AVI
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

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…
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…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

728 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

10 Experts available now in Live!

Get 1:1 Help Now