Rank: Advanced Member
Groups: Guest
Joined: 3/3/2008(UTC) Posts: 185
Thanks: 8 times
|
Hi,
Is that possible to group VObject? What we trying to do is create our own VObject which can draw "callouts". Where it will be joining polygon drawing and also text.
Please advise..
Thanks.
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 5/29/2010(UTC) Posts: 1,310
Thanks: 8 times Was thanked: 111 time(s) in 111 post(s)
|
Hello Ching-Yen, It is possible. You can found detailed information on how to use it in the CompositeVObject Class article. |
Best regards, Dmitry Obukhov
Technical Support. Aurigma, Inc.
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 3/3/2008(UTC) Posts: 185
Thanks: 8 times
|
Hi,
Thanks for the link. But, is there any sample on this? It's really difficult to understand how to make use of those by just reading the function list. Please advise..
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 5/29/2010(UTC) Posts: 1,310
Thanks: 8 times Was thanked: 111 time(s) in 111 post(s)
|
Hello Ching-Yen, I created simple win application. It allows creating two vector objects and grouping them to one. I attached this sample for your reference. Please download and try it out. If you have any questions or problems, I will be glad to assist you. |
Best regards, Dmitry Obukhov
Technical Support. Aurigma, Inc.
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 3/3/2008(UTC) Posts: 185
Thanks: 8 times
|
Hi, We tried to modify the given sample. But, we are facing problem when user try to click on the created group object, it will give error. Please find attach for the sample code. p/s: Click on the button 2 and drag to draw it. Edited by user Tuesday, August 31, 2010 2:57:50 AM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member
Groups: Guest
Joined: 5/29/2010(UTC) Posts: 1,310
Thanks: 8 times Was thanked: 111 time(s) in 111 post(s)
|
Hello Ching-Yen, This error occurs because all vector objects should be added on the multilayer viewer. Please correct your script so that all your objects will be added on viewer like in my first sample: Code:
multiLayerViewer1.Layers[0].VObjects.Add(rectangle);
multiLayerViewer1.Layers[0].VObjects.Add(text);
|
Best regards, Dmitry Obukhov
Technical Support. Aurigma, Inc.
|
|
|
|
Forum Jump
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.