Hello,
I'm trying to implement an inplace editor for a FNCObjectInspector to wich an object is assigned.
First Question: Is there an example code for cusom inplace editors somewhere?
Second Question: How can I get the original data type of my object property in TMSFNCObjectInspectorGetInplaceEditor?
Here is my code, but it returs 'string'
Type
TCnfPath = String;
...
procedure TForm2.TMSFNCObjectInspectorGetInplaceEditor(Sender: TObject;
ANode: TTMSFNCTreeViewVirtualNode; AColumn: Integer;
var AInplaceEditorClass: TTMSFNCTreeViewInplaceEditorClass);
Var
iPropertyInfo: TTMSFNCPropertyInfo;
iTypeName: string;
begin
iPropertyInfo := TTMSFNCPropertyInfo(ANode.Node.DataPointer);
if Assigned(iPropertyInfo) then begin
iTypeName := iPropertyInfo.PropType^.Name;
if iTypeName = 'TCnfPath' then
AInplaceEditorClass := TTMSFNCTreeViewInplaceEditorPath;
end;
end;
Third question: is there an example for implementing an custom inplace editor?
Thanks in advance
Björn