function TLMDPicturePropEditor.GetValue: TLMDString;
begin
if TPicture(GetOrdValue(0)).Graphic = nil then
Result := '(None)'
else
Result := '(Picture)';
end;
GetOrdValue returns a 32 bit integer that can not be casted into TPicture when we are working in 64 bits. A possible replacement should be:
function TLMDPicturePropEditor.GetValue: TLMDString;
begin
if TPicture(GetObjectValue(0)).Graphic = nil then
Result := '(None)'
else
Result := '(Picture)';
end;
Comments