Class properties lazarus / 9-Editor ---------------------------------------------------------------------- jania · 2006-04-09 14:53 I'm trying to compile my Delphi project with Lazarus, but I'm having problems with the class properties. Code: [Select] type    Float = Single;    PVector3f = ^TVector3f;    TVector3f = record       case Integer of          0: (x, y, z: Float);          1: (v: array [0..2] of Float);       end;    TFooBar = class(TObject)    protected       FBar: TVector3f;    published       property Bar: TVector3f read FBar write FBar;    end; I get Error: That kind of property can't be published on the property. Any workarounds for this? I have quite a few declarations like this and the project should still compile with Delphi too... EDIT: Just realized that I could move the array type properties from published to public as a workaround. Can't compile my project yet tho, I use JPEG images and it seems that the FPC bitmap ain't compatible with Delphi bitmap, nor it doesn't work properly yet anyway. There's no scanline property on any of the image classes and changing all the code depending on it would take just too long... ---------------------------------------------------------------------- Anonymous · 2006-04-11 12:54 published property is visible in ObjectInspector. Move property Bar to public section