SetAnnotationPropertyValue
SetAnnotationPropertyValue
Hi
We are using Delphi and the GDPicture_NET_11_TLB. To Change the Properties of Annotations we are using SetAnnotationPropertyValue. This method Needs a String Parmeter to set the Property Value. Where did we get the possible Parameters ?? The best way would be a Method where we get the String Parameter, if you Change the Name in future Versions.
We are using Delphi and the GDPicture_NET_11_TLB. To Change the Properties of Annotations we are using SetAnnotationPropertyValue. This method Needs a String Parmeter to set the Property Value. Where did we get the possible Parameters ?? The best way would be a Method where we get the String Parameter, if you Change the Name in future Versions.
Re: SetAnnotationPropertyValue
I uses the same String Names as the FunctionNames are declared in the .net Namespace. A view Functions work, but not all. For example when i want to set the Borderwidth at runtime and i use the function with the Name "BorderWidth", the Annotation will not be changed.
Can you give me a list of all Names ??
Can you give me a list of all Names ??
Re: SetAnnotationPropertyValue
Hello,
The properties names are listed in the documentation of each annotation.
Could you share a code snippet that demonstrates how you are trying to change the value?
Kind regards,
Loïc
The properties names are listed in the documentation of each annotation.
Could you share a code snippet that demonstrates how you are trying to change the value?
Kind regards,
Loïc
Re: SetAnnotationPropertyValue
Hi
This are extracts from a longer block:
To Change the Border Color we use:
lName := 'StrokeColor';
lValue := ExtractARGBI(BorderColor);
GetAnnotationManager.SetAnnotationPropertyValue(SelectedIdx, lName, lValue)
-> This works fine.
But when we tried to Change the Border Width:
lName := 'BorderWidth';
lValue := ExtractInch(BorderWidth);
GetAnnotationManager.SetAnnotationPropertyValue(SelectedIdx, lName, lValue)
This does not work. When i add a new Annotation with the new Stroke width, than the extracted Inch Value works.
This are extracts from a longer block:
To Change the Border Color we use:
lName := 'StrokeColor';
lValue := ExtractARGBI(BorderColor);
GetAnnotationManager.SetAnnotationPropertyValue(SelectedIdx, lName, lValue)
-> This works fine.
But when we tried to Change the Border Width:
lName := 'BorderWidth';
lValue := ExtractInch(BorderWidth);
GetAnnotationManager.SetAnnotationPropertyValue(SelectedIdx, lName, lValue)
This does not work. When i add a new Annotation with the new Stroke width, than the extracted Inch Value works.
Re: SetAnnotationPropertyValue
The returned value of ExtractInch must be Single, is it the case?
Re: SetAnnotationPropertyValue
Hi
Yes, for These i use a Single Value. A few Functions like StrokColor work, other not. So, can you send me the Names I Need to set ??
Yes, for These i use a Single Value. A few Functions like StrokColor work, other not. So, can you send me the Names I Need to set ??
Re: SetAnnotationPropertyValue
So I will need a code snippet that I can us "as is" reproducing the problem. I can't guess what is wrong from your code with such few information.Yes, for These i use a Single Value
Again all is in the documentation. An example, for the rectangle annotation: https://www.gdpicture.com/guides/gdpicture/web ... mbers.htmlSo, can you send me the Names I Need to set ??
Names are listed in the column "Name".
Kind regards,
Loïc
Re: SetAnnotationPropertyValue
OK I've made further tests and it seems that Delphi is sending the parameter as double value instead of Single.
I am quite sure there is a way to handle that in the delphi side but to make things easier we will apply the proper cast from the GdPicture side.
The next minor release will include the patch.
Kind regards,
Loïc
I am quite sure there is a way to handle that in the delphi side but to make things easier we will apply the proper cast from the GdPicture side.
The next minor release will include the patch.
Kind regards,
Loïc
Re: SetAnnotationPropertyValue
Hi
Great News. Waiting for the new minor release .
Great News. Waiting for the new minor release .
Who is online
Users browsing this forum: No registered users and 2 guests