🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.pascal.delphi.components.writing
Article #39

Object type property

#39
From: Marc Scheuner
Date: Thu, 26 Feb 1998 00:00
39 lines
2012 bytes
Folks

I need to have a property in one of my components that will be visible
in the object inspector, and that works like the "Font" property in
that it will fold open and display a number of related properties.

What I'm trying to do is to bundle together a number of field names in
a table that I need to reference. I declared a type 

TFieldNames = class  (* MSE *)
    Prop : String;
    Form : String;
    ValueD : String;
    ValueF : String;
    ValueI : String;
end;

and used it in my component as a property:

    property FieldNames : TFieldNames read FFieldNames
                                           write FFieldNames;

In the constructor of my component, I create the internal FFieldNames
variable. I see this property in the object inspector, but I can't get
it to fold open nicely, I always get nothing but a General Protection
Fault.

What am I missing? Do I need a property editor, just for a few
strings? Am I missing something else? Can someone provide a sample of
a component with such a property that's working properly??

Thanks in advance!
Marc


======================================================================
[ Marc Scheuner, marc.scheuner@berner.ch  CH-3001 BERNE, Switzerland ]
======================================================================
Technical Details
Message-ID: <34f53726.9264792@news.bernoise.ch>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 112b07,e1bc3f3c82781c2c,start
X-Google-Attributes: gid112b07,public
X-Google-Thread: fe2ce,e1bc3f3c82781c2c,start
X-Google-Attributes: gidfe2ce,public
From: marc.scheuner@NO.SPAM.PLEASE.ch (Marc Scheuner)
Subject: Object type property
Date: 1998/02/26
Message-ID: <34f53726.9264792@news.bernoise.ch>
X-Deja-AN: 328795112
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii
Organization: Berner Versicherungen
Mime-Version: 1.0
Reply-To: marc.scheuner@NO.SPAM.PLEASE.ch (Marc Scheuner)
Newsgroups: comp.lang.pascal.delphi.components.writing,borland.public.delphi.vcl.components.writing