[Lazarus] Does Lazarus give default names to components created at runtime?

vfclists . vfclists at gmail.com
Thu Sep 11 19:41:02 CEST 2014


On 18 June 2013 17:59, Mattias Gaertner <nc-gaertnma at netcologne.de> wrote:

> On Tue, 18 Jun 2013 17:42:58 +0100
> "vfclists ." <vfclists at gmail.com> wrote:
>
> > On 18 June 2013 13:20, Mattias Gaertner <nc-gaertnma at netcologne.de>
> wrote:
> >
> > >
> > >
> > > > "vfclists ." <vfclists at gmail.com> 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-ide.org/pipermail/lazarus/attachments/20140911/a757b806/attachment-0002.html>


More information about the Lazarus mailing list