Does Lazarus give default names to components created at runtime?
Mailing lists / lazarus / 2013-06
Does Lazarus give default names to components created at runtime?
8 messages · 3 people · –
- Vvfclists . 4
- MMattias Gaertner 3
- JJuha Manninen 1
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
vfclists . wroteDoes Lazarus give default names to components created at runtime?
No. Default name is given only when a component is created at design time using the designer.
Juha
Does Lazarus give default names to components created at runtime? Frank Church…
"vfclists ." hat am 18. Juni 2013 um 13:29 geschrieben: Does Lazarus give default names to components created at runtime?
No. Default is ''.
Mattias
Mattias Gaertner wrote 13 lines
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?
Show quoted text 18 lines
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
Mattias Gaertner wrote 33 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.
Do you have some idea what the replacement procedures are?
Show quoted text 5 lines
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
Mattias Gaertner wrote 20 lines
Thanks
