If that is the case why not use TListView instead? TMemo is meant for
editing text.


On 13 December 2012 20:04, John Barrat <[email protected]> wrote:

> No the only things allowed are to re-order (drag and drop) and delete - I
> cannot see why that should affect the objects or am I missing something?
>
> JohnB
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On
> Behalf
> Of Stephen Posey
> Sent: 12 December 2012 15:12
> To: Moderated List for the Discussion of Delphi Programming excluding
> Database-related topics
> Subject: Re: What is the best way to add objects to TMemo.Lines
>
> Are you going to allow the text in the Memo to be edited?
>
> If so, what are the implications for the associated objects if the number
> of
> lines changes (e.g. someone inserts a line break, types in one or more
> lines, or deletes one or more lines)?
>
> Stephen Posey
> [email protected]
>
> -----Original Message-----
> >From: John Barrat <[email protected]>
> >Sent: Dec 11, 2012 11:38 AM
> >To: 'Moderated List for the Discussion of Delphi Programming
> >       excluding       Database-related topics' <[email protected]>
> >Subject: What is the best way to add objects to TMemo.Lines
> >
> >I seems TMemo.lines only supports the String part of a TStrings not the
> >Objects.
> >
> >TMemo.Lines.AddObject compiles fine in fact only the string component
> >is actually loaded.
> >
> >
> >
> >I need to store an object with this TMemo - how do you recommend I do
> this?
> >
> >
> >
> >JohnB
> >
> >_______________________________________________
> >Delphi mailing list
> >[email protected]
> >http://lists.elists.org/cgi-bin/mailman/listinfo/delphi
>
> _______________________________________________
> Delphi mailing list
> [email protected]
> http://lists.elists.org/cgi-bin/mailman/listinfo/delphi
>
> _______________________________________________
> Delphi mailing list
> [email protected]
> http://lists.elists.org/cgi-bin/mailman/listinfo/delphi
>
_______________________________________________
Delphi mailing list
[email protected]
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

Reply via email to