Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 902 Bytes

README.md

File metadata and controls

29 lines (24 loc) · 902 Bytes

inspector-fmx

FMX下通用可扩展的属性编辑器

构造示例:

  FEditorInspector:= TEditorInspector.Create(lytLeft);
  FEditorInspector.Parent:= lytLeft;
  FEditorInspector.Align:= TAlignLayout.Client;
  FEditorInspector.Images:= ImageList1;
  //custom
  FEditorInspector.RegisterPropEditor('Boolean', TBooleanPropEditor);
  FEditorInspector.RegisterPropEditor('TAColor', TAColorPropEditor);
  FEditorInspector.RegisterPropEditor('TImageFileName', TImageFilePropEditor);
  FEditorInspector.RegisterPropEditor('TStringListText', TStringListTextPropEditor);
  FEditorInspector.RegisterPropEditor('TActionName', TActionNamePropEditor);

调用示例:

procedure TMainFrm.pbxRendererMouseLeave(Sender: TObject);
begin
  FEditorInspector.Select(Sender);
end;

效果图:

inspector screenshot