Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Tuesday, November 6, 2007 3:14:58 AM(UTC)

lidds  
lidds

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
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Tuesday, November 6, 2007 10:19:03 PM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,328

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)

lidds  
lidds

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)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,328

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
 
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.

Powered by YAF.NET | YAF.NET © 2003-2020, Yet Another Forum.NET
This page was generated in 0.059 seconds.