?
Solved

My first Question

Posted on 2000-05-21
7
Medium Priority
?
144 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
[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
  • 3
  • 3
7 Comments
 
LVL 1

Expert Comment

by:sistudio041900
ID: 2830366
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
ID: 2830392
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
ID: 2830400
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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Author Comment

by:avi_shina
ID: 2830416
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
ID: 2830424
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 80 total points
ID: 2830621
You can easily change "TForm1" to "TMain" by changing the "Name" feild of "TForm1" in the object inspector.
0
 

Author Comment

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

Featured Post

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses
Course of the Month14 days, 5 hours left to enroll

801 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