Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-02

How to rename a Form

4 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Frédéric Loyer

Hi,

When I create a new application project, my program start with a Unit1 (I can easily rename), associated with a "Form1" I can't rename.

How can I change the name of this "form" ?

Frederic Loyer

Reply by email

Howard Page-Clark
to Frédéric Loyer
Fr?d?ric Loyer wrote
When I create a new application project, my program start with a Unit1 (I can easily rename), associated with a "Form1" I can't rename. How can I change the name of this "form" ?

In the Lazarus IDE, make sure the form is selected by clicking it, move focus to the Object Inspector (F12), scroll down to the Name property (first column) and change the "Form1" entry (second column) to whatever you prefer.

Reply by email

Alejandro Gonzalo
to Howard Page-Clark

It's less confusing to always leave the main form name as Form1 (with?its file name being specific to the project, I use the project name with a F appended at the end).? This way when you click View Forms you always know which is the main form. ?
A. G.

Show quoted text 22 lines
________________________________ From: Howard Page-Clark To: Sent: Wednesday, February 20, 2013 1:18 PM Subject: Re: [Lazarus] How to rename a Form On 20/02/13 9:05, Fr?d?ric Loyer wrote: > When I create a new application project, my program start with a Unit1 > (I can easily rename), associated with a "Form1" I can't rename. > > How can I change the name of this "form"? ? In the Lazarus IDE, make sure the form is selected by clicking it, move focus to the Object Inspector (F12), scroll down to the Name property (first column) and change the "Form1" entry (second column) to whatever you prefer. -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130220/e29d8a30/attachment.html>

Reply by email

Vincent Snijders
to Alejandro Gonzalo

2013/2/21 Alejandro Gonzalo :

It's less confusing to always leave the main form name as Form1 (with its file name being specific to the project, I use the project name with a F appended at the end). This way when you click View Forms you always know which is the main form.

It is even less confusing to give it the name MainForm if it is actually the mainform.

Vincent

Reply by email