LEADTOOLS Support
Document
Document SDK Questions
Display annotation options in propertygrid...
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Tuesday, November 6, 2007 3:14:58 AM(UTC)
Groups: Registered
Posts: 9
Instead of displaying the annotation properties form like in your examples I wish to update a propertygrid (just like in VS) with the various attributes for the elements selected e.g. when selected a line display it's properties and when selecting a box it displays it's properties.
Have you got an example of how I can create a propertygrid for this?
Using .net class 14.5
Simon
#2
Posted
:
Tuesday, November 6, 2007 10:19:03 PM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
Hello,
Do you mean that you want to use the property grid control to shows the attributes of annotation objects, instead of displaying properties dialog?
If yes, you need to disable the properties dialog before start setting the propertygrid. Then you can retrieve the properties of selected Annotation object programmatically and show them using the propertygrid control.
If you mean something else, please provide me with more details.
Thanks,
Maen Badwan
LEADTOOLS Technical Support
#3
Posted
:
Tuesday, November 6, 2007 10:25:07 PM(UTC)
Groups: Registered
Posts: 9
You are correct that is what I wish to do however I do not know how to get the properties of the selected object. Would it be possible for you to give me an example code on how I would acheive this?
I am using v14.5 .Net class in VB.Net code
Thanks
Simon
#4
Posted
:
Tuesday, November 6, 2007 11:17:58 PM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
Hello,
To get the currently selected object, you may try to use the AnnEditDesigner.EditObject method. Then you can get the different properties of the AnnObject as follows:
+-------+
Dim Anndes As AnnEditDesigner
Dim AnnObj As AnnObject
If (Not IsNothing(AnnAutomation.CurrentDesigner) AndAlso TypeOf (AnnAutomation.CurrentDesigner) Is AnnEditDesigner) Then
Anndes = automation.CurrentDesigner
AnnObj = Anndes.EditObject()
'Retrieve the AnnObj different properties, such as AnnObj.Brush,
' AnnObj.Font, AnnObj.Name, AnnObj.Pen, AnnObject.Origin, etc.
' Use the AnnObject properties with the propertygrid control
End If
+-------+
Fore more information, please refer to the LEADTOOLS .Net documentation and read the following topics:
- AnnEditDesigner.EditObject Property
- AnnObject Members
Also, please read the following forum posts:
http://support.leadtools.com/SupportPortal/cs/forums/4693/ShowPost.aspx
http://support.leadtools.com/SupportPortal/cs/forums/3219/ShowPost.aspx
http://support.leadtools.com/SupportPortal/cs/forums/10096/ShowPost.aspx
Thanks,
Maen Badwan
LEADTOOLS Technical Support
LEADTOOLS Support
Document
Document SDK Questions
Display annotation options in propertygrid...
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.