Sign in Join

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

Mailing lists / lazarus / 2011-09

Problem to rename a form

8 messages · 5 people ·

Reply by email Subscribe to this list Your subscription

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

Rafael Tuim Elias

I found a strange behavior in Lazarus IDE. To reproduce follow that steps:

1 - Create a new project.
2 - Rename Form1 to fmAINmENU
3 - Save all
4 - Try to rename the form to FMainMenu

IDE doesn't permit. The error: This component has already the class TFPrint.

I think it is a little bug.

I'm using Lazarus 0.9.31 + FPC 2.5.1 + Win XP 32bits

best regards

Rafael Tuim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110928/73ef6e0d/attachment.html>

Reply by email

silvioprog
to Rafael Tuim Elias

2011/9/28 Rafael Tuim Elias :

Show quoted text 10 lines
I found a strange behavior in Lazarus IDE. To reproduce follow that steps: 1 - Create a new project. 2 - Rename Form1 to fmAINmENU 3 - Save all 4 - Try to rename the form to FMainMenu IDE doesn't permit. The error: This component has already the class TFPrint. I think it is a little bug. I'm using Lazarus 0.9.31 + FPC 2.5.1 + Win XP 32bits best regards Rafael Tuim

This error also occurs to me.

Lazarus 0.9.30 r29749 FPC 2.4.2 i386-win32-win32/win64

Silvio Cl?cio =============================================== Blog - <silvioprog.com.br> Twitter - <twitter.com/silvioprog> Facebook - <facebook.com/silvioprog> LazSolutions - <code.google.com/p/lazsolutions> LazWebSolutions - <code.google.com/p/lazwebsolutions> Lazarus-BR - <groups.google.com.br/group/lazarus-br?hl=pt-BR> =============================================== ? ?* Conhe?a nosso canal IRC sobre Lazarus: #lazarus-br * ===============================================

Reply by email

Howard Page-Clark
to Rafael Tuim Elias: I found a strange behavior in Lazarus IDE. To reproduce follow that steps: 1 - Create a…
Rafael Tuim Elias wrote 10 lines
I found a strange behavior in Lazarus IDE. To reproduce follow that steps: 1 - Create a new project. 2 - Rename Form1 to fmAINmENU 3 - Save all 4 - Try to rename the form to FMainMenu IDE doesn't permit. The error: This component has already the class TFPrint. I think it is a little bug.

It's not a bug if the error message is
"This component has already the class fmAINmENU"

since the IDE rightly disallows having two components with identical names (ignoring case). So, yes, the IDE does not check if you are just altering the case of the component name from what was originally entered. It won't let you do that. Hardly a big deal.

However, the English error message would be better "This component already has the class..." (which is English, rather than transliterated German).

H

Reply by email

silvioprog
to Howard Page-Clark

2011/9/28 Howard Page-Clark :

Show quoted text 26 lines
On 28/9/11 1:24, Rafael Tuim Elias wrote: > > I found a strange behavior in Lazarus IDE. To reproduce follow that steps: > > 1 - Create a new project. > 2 - Rename Form1 to fmAINmENU > 3 - Save all > 4 - Try to rename the form to FMainMenu > > IDE doesn't permit. The error: This component has already the class > TFPrint. > > I think it is a little bug. It's not a bug if the error message is ?"This component has already the class fmAINmENU" since the IDE rightly disallows having two components with identical names (ignoring case). So, yes, the IDE does not check if you are just altering the case of the component name from what was originally entered. It won't let you do that. Hardly a big deal. However, the English error message would be better "This component already has the class..." (which is English, rather than transliterated German). H

But this behavior is different from Delphi (7). I tested it in Delphi and this problem does not occur.

It's bug.

Silvio Cl?cio =============================================== Blog - <silvioprog.com.br> Twitter - <twitter.com/silvioprog> Facebook - <facebook.com/silvioprog> LazSolutions - <code.google.com/p/lazsolutions> LazWebSolutions - <code.google.com/p/lazwebsolutions> Lazarus-BR - <groups.google.com.br/group/lazarus-br?hl=pt-BR> =============================================== ? ?* Conhe?a nosso canal IRC sobre Lazarus: #lazarus-br * ===============================================

Reply by email

Mattias Gaertner
to Rafael Tuim Elias: I found a strange behavior in Lazarus IDE. To reproduce follow that steps: 1 - Create a…
Show quoted text 12 lines
I found a strange behavior in Lazarus IDE. To reproduce follow that steps: 1 - Create a new project. 2 - Rename Form1 to fmAINmENU 3 - Save all 4 - Try to rename the form to FMainMenu IDE doesn't permit. The error: This component has already the class TFPrint. I think it is a little bug. I'm using Lazarus 0.9.31 + FPC 2.5.1 + Win XP 32bits

I fixed it in svn trunk.

Mattias

Reply by email

silvioprog
to Mattias Gaertner

2011/9/28 Mattias Gaertner :

Show quoted text 19 lines
On Wed, 28 Sep 2011 09:24:28 -0300 Rafael Tuim Elias wrote: > I found a strange behavior in Lazarus IDE. To reproduce follow that steps: > > 1 - Create a new project. > 2 - Rename Form1 to fmAINmENU > 3 - Save all > 4 - Try to rename the form to FMainMenu > > IDE doesn't permit. The error: This component has already the class TFPrint. > > I think it is a little bug. > > I'm using Lazarus 0.9.31 + FPC 2.5.1 + Win XP 32bits I fixed it in svn trunk. Mattias

Thx. :)

Silvio Cl?cio =============================================== Blog - <silvioprog.com.br> Twitter - <twitter.com/silvioprog> Facebook - <facebook.com/silvioprog> LazSolutions - <code.google.com/p/lazsolutions> LazWebSolutions - <code.google.com/p/lazwebsolutions> Lazarus-BR - <groups.google.com.br/group/lazarus-br?hl=pt-BR> =============================================== ? ?* Conhe?a nosso canal IRC sobre Lazarus: #lazarus-br * ===============================================

Reply by email

waldo kitty
to Howard Page-Clark: It's not a bug if the error message is "This component has already the class fmAINmENU"…
Howard Page-Clark wrote 19 lines
On 28/9/11 1:24, Rafael Tuim Elias wrote: > I found a strange behavior in Lazarus IDE. To reproduce follow that steps: > > 1 - Create a new project. > 2 - Rename Form1 to fmAINmENU > 3 - Save all > 4 - Try to rename the form to FMainMenu > > IDE doesn't permit. The error: This component has already the class TFPrint. > > I think it is a little bug. It's not a bug if the error message is "This component has already the class fmAINmENU" since the IDE rightly disallows having two components with identical names (ignoring case). So, yes, the IDE does not check if you are just altering the case of the component name from what was originally entered. It won't let you do that. Hardly a big deal.

the error message should indicate something about this check being done case insensitive, too...

or it should go ahead and fix the case the way it is being entered... since it detects the duplicate, it can inquire about renaming as newly entered or leaving it (and aborting) or are we trying to create a new one and simply typed a name already in use... three options with some smarts in the choices ;)

Reply by email