Sign in Join

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

Mailing lists / fpc-devel / 2005-04

Subcomponents

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

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

Marc Weustink

Hi,

Attached is a patch to enable subcomponents to be streamed. Added are the csSubComponent and the csTransient ComponentStyle

When the csSubComponent style is set for a published TComponent type property, all properties of this component are written (like it was a TPersistent)

When the csTransient style is set for a component, it indecates thet it is a temporary object and the properties aren't written.

Marc

Reply by email

Michael Van Canneyt
to Marc Weustink
Marc Weustink wrote 11 lines
Hi, Attached is a patch to enable subcomponents to be streamed. Added are the csSubComponent and the csTransient ComponentStyle When the csSubComponent style is set for a published TComponent type property, all properties of this component are written (like it was a TPersistent) When the csTransient style is set for a component, it indecates thet it is a temporary object and the properties aren't written.

But is does not need to be csSubcomponent to be csTransient ?

Anyway, thank you.
The patch is applied.

Michael.

Reply by email

Marc Weustink
to Michael Van Canneyt

From:
Behalf Of Michael Van
Canneyt
Sent: vrijdag 15 april 2005 9:24

Show quoted text 17 lines
On Fri, 15 Apr 2005, Marc Weustink wrote: > Hi, > > Attached is a patch to enable subcomponents to be streamed. > Added are the csSubComponent and the csTransient ComponentStyle > > When the csSubComponent style is set for a published TComponent type > property, all properties of this component are written (like it was a > TPersistent) > > When the csTransient style is set for a component, it > indecates thet it is a temporary object and the > properties aren't written. But is does not need to be csSubcomponent to be csTransient ?

Don't know. I read the description of csTransient and while I was at csSubcomponent, implementing it wasn't a big deal. I've no idea in what situation you would use it.

Anyway, thank you. The patch is applied.

Thanks.

Marc

Reply by email