Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

Share Me

  • Please share this topic with your friends. Click any of the icons below:
  • Twitter
  • facebook
  • reddit
  • email

LMD Design Pack

  I wonder about better documentation or some samples, how use TLMDPropertyInspector class and dynamic properties. I see some events
I try use OnDynPropsDefine and OnDynPropGetValue events

procedure OnDynPropsDefine(...);
ADefiner.DefineProperty( 'AAA', tkString, true, false);

procedure OnDynPropGetValue(Sender: TObject;
  AInstance: TPersistent; AProperty: ILMDProperty; AUserData: Pointer;
  AResult: TLMDPropertyInspectorDynValue);
  if Aproperty.Name = 'AAA' then
    AResult.AsStrVal := 'Value'; //Here is critical place

It is look like good and simple, but I very often get error:
"Project XXX raised exception class EpropertyConvertorError with message 'Invalid Property Type'."

I can get this error always, when I try modify Ancors property in component, which has dynamic AAA property.

Thank you for cooperation


Sign In or Register to comment.