On Thu, Aug 11, 2005 at 02:02:36AM +0300, Alexander Todorov wrote:
> > 2. Why can't multiple forms of the "same name" be created?
> > Delphi has no problems with this.
>
> In delphi the two forms are not with the exact same name. At work we
> have an application with many forms that can be opened many times.
> When TfMyForm is opened for the firms time its name is fMyForm
> (suppose you named it this way in OI). The second time its opened
> (e.g. obj := TfMyForm.Create) it has name something like fMyForm_1,
> the third fMyForm_2 and so on.
> I think when creating form dynamically Delphi automatically adds
> numbers after the name to prevent errors. This is at least what i have
> seen.
So, how can I accomplish renaming (automatic or manual) under Lazarus?
Or is that not (yet) possible?
The name is embedded in the .lrs file, where it is hard to change.
Changing it in the constructor would be too late, I fear.
Tom
--
E-MAIL: T.Verhoeff @ TUE.NL | Fac. of Math. & Computing Science
PHONE: +31 40 247 41 25 | Eindhoven University of Technology
FAX: +31 40 247 54 04 | PO Box 513, NL-5600 MB Eindhoven
http://www.win.tue.nl/~wstomv/ | The Netherlands
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives