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

2014-09-11 Thread vfclists .
On 18 June 2013 17:59, Mattias Gaertner nc-gaert...@netcologne.de wrote:

 On Tue, 18 Jun 2013 17:42:58 +0100
 vfclists . vfcli...@gmail.com wrote:

  On 18 June 2013 13:20, Mattias Gaertner nc-gaert...@netcologne.de
 wrote:
 
  
  
vfclists . vfcli...@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
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


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

2014-09-11 Thread Mattias Gaertner
On Thu, 11 Sep 2014 18:41:02 +0100
vfclists . vfcli...@gmail.com 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

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


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

2014-09-11 Thread vfclists .
On 11 September 2014 19:03, Mattias Gaertner nc-gaert...@netcologne.de
wrote:

 On Thu, 11 Sep 2014 18:41:02 +0100
 vfclists . vfcli...@gmail.com 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
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


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

2013-06-18 Thread Juha Manninen
On Tue, Jun 18, 2013 at 2:29 PM, vfclists . vfcli...@gmail.com wrote:

 Does 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

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


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

2013-06-18 Thread Mattias Gaertner


 vfclists . vfcli...@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

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


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

2013-06-18 Thread vfclists .
On 18 June 2013 13:20, Mattias Gaertner nc-gaert...@netcologne.de wrote:



  vfclists . vfcli...@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?

-- 
Frank Church

===
http://devblog.brahmancreations.com
--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus


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

2013-06-18 Thread Mattias Gaertner
On Tue, 18 Jun 2013 17:42:58 +0100
vfclists . vfcli...@gmail.com wrote:

 On 18 June 2013 13:20, Mattias Gaertner nc-gaert...@netcologne.de wrote:
 
 
 
   vfclists . vfcli...@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
 

--
___
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus