Is it possible to make TTMSFNCObjectInspector Collection Editor read only?

I am using the object inspector to view and optionally modify properties. If not in Edit mode, I set the inspector's ReadOnly property to True.
With ReadOnly=True, it is still possible to open the Collection Editor (which is a good thing) to inspect the properties of child collections.
My problem is that the Collection Editor allows changes to the objects in the collection, even though the parent Inspector is read only.
How can I prevent the Collection Editor from modifying the objects in the child collection when I am not in edit mode (i.e. when ReadOnly=True for the object inspector)?

Hi,

You can access the object inspector in the collection editor by using

procedure TForm1.TMSFNCObjectInspector1CustomizeObjectEditor(Sender,
  AObject: TObject; APropertyInfo: TTMSFNCPropertyInfo; APropertyName: string;
  APropertyType: TTypeKind; APropertyValueObject: TObject;
  AEditor: TTMSFNCObjectInspectorEditor; AEditorForm: TTMSFNCCustomDesignerForm;
  AEditorObjectInspector: TTMSFNCObjectInspector);
begin
  AEditorObjectInspector.Interaction.ReadOnly := True;
end;

Thank you!

It would be useful if this, and the other Object Inspector events and properties, were fully documented on TTMSFNCObjectInspector - TMS FNC UI Pack

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.