Accessing protected properties in decendants lazarus / 31-LCL ---------------------------------------------------------------------- chucky · 2013-04-16 16:55 I am trying to derive a new class based on TCustomView. I thought a descendant could access any protected properties but when I add a statement like ListView1.ViewStyle := vsReport I get the compiler error: Error: identifer idents no member "ViewStyle" When I derive from TListView (which publishes the property ViewStyle it compiles just fine. Is there something I am not doing right? I am using 1.0.8 ---------------------------------------------------------------------- Blaazen · 2013-04-16 17:19 I think the it also depends if the descendant class is in the same unit. What happens if you add this: Code: [Select]public   property ViewStyle;Can you then access it? EDIT: I tried to derive class from TCustomListView and ViewStyle is perfectly accessible, code is compilable, works well. ---------------------------------------------------------------------- Leledumbo · 2013-04-17 00:03 QuoteTCustomViewDid you mean TCustomListView? It should work, try showing your code.