Sign in Join

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

Mailing lists / lazarus / 2013-06

Does Lazarus give default names to components created at runtime?

8 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

vfclists .
to Mattias Gaertner
Mattias Gaertner wrote 13 lines
> "vfclists ." hat am 18. Juni 2013 um 13:29 geschrieben: > > > Does Lazarus give default names to components created at runtime? No. Default is ''. Mattias

Is there function in the LCL that can suggest or create a name for new component, like in the IDE that creates a name from the component type and an integer?

Frank Church ======================= http://devblog.brahmancreations.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130618/5b1c0eb9/attachment.html>

Reply by email

Mattias Gaertner
to vfclists .
Show quoted text 18 lines
On 18 June 2013 13:20, Mattias Gaertner wrote: > > > > "vfclists ." hat am 18. Juni 2013 um 13:29 > geschrieben: > > > > > > Does Lazarus give default names to components created at runtime? > > No. Default is ''. > > Mattias > > Is there function in the LCL that can suggest or create a name for new component, like in the IDE that creates a name from the component type and an integer?

The IDE one is a bit more complicated than that and it is pretty IDE specific, so it is not in the LCL.
There are CreateFirstIdentifier and CreateNextIdentifier in LCLProc. Maybe they can help you.

Mattias

Reply by email

vfclists .
to Mattias Gaertner
Mattias Gaertner wrote 33 lines
On Tue, 18 Jun 2013 17:42:58 +0100 "vfclists ." wrote: > On 18 June 2013 13:20, Mattias Gaertner wrote: > > > > > > > > "vfclists ." hat am 18. Juni 2013 um 13:29 > > geschrieben: > > > > > > > > > Does Lazarus give default names to components created at runtime? > > > > No. Default is ''. > > > > Mattias > > > > > Is there function in the LCL that can suggest or create a name for new > component, like in the IDE that creates a name from the component type and > an integer? The IDE one is a bit more complicated than that and it is pretty IDE specific, so it is not in the LCL. There are CreateFirstIdentifier and CreateNextIdentifier in LCLProc. Maybe they can help you. Mattias

I have checked CreateFirstIdentifier and CreateNextIdentifier and they appear to fit the bill , but a comment in the source code says they have been deprecated in favour of some new procedures in LazUtils.LazUTF8 which I can't find.

Do you have some idea what the replacement procedures are?

Frank Church ======================= http://devblog.brahmancreations.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20140911/a757b806/attachment.html>

Reply by email

Mattias Gaertner
to vfclists .
Show quoted text 5 lines
[...] I have checked CreateFirstIdentifier and CreateNextIdentifier and they appear to fit the bill , but a comment in the source code says they have been deprecated in favour of some new procedures in LazUtils.LazUTF8 which I can't find.

That's a copy/paste error in the documentation. I fixed it in trunk.

Do you have some idea what the replacement procedures are?

There are no such replacements for these two functions.

Mattias

Reply by email

vfclists .
to Mattias Gaertner
Mattias Gaertner wrote 20 lines
On Thu, 11 Sep 2014 18:41:02 +0100 "vfclists ." wrote: >[...] > I have checked CreateFirstIdentifier and CreateNextIdentifier and they > appear to fit the bill , but a comment in the source code says they have > been deprecated in favour of some new procedures in LazUtils.LazUTF8 which > I can't find. That's a copy/paste error in the documentation. I fixed it in trunk. > Do you have some idea what the replacement procedures are? There are no such replacements for these two functions. Mattias

Thanks

Frank Church ======================= http://devblog.brahmancreations.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20140911/675c7a1a/attachment.html>

Reply by email