This forum contains outdated content and is available for reading only. Please contact technical support if you have any questions.

Notification

Icon
Error

Options
Go to last post Go to first unread
mzhao  
#1 Posted : Wednesday, September 15, 2010 3:40:32 AM(UTC)
mzhao

Rank: Advanced Member

Groups: Guest
Joined: 9/10/2010(UTC)
Posts: 57

Thanks: 1 times
When Some object such as RectangleVObject, EllipseVObject, ImageVObject, etc is created, its SupportedActions property already contains some VObjectAction such as VObjectAction.Rotate, etc. How do those VObjectActions are added to SupportedActions collections? Looks at some classes such as IVObjectActionCollection, there seems no obvious way to do this .

Also, it seems that the SupportedActions of a derived VObject does not contain any VObjectActions. Is there any way to add VObjectActions to the SupportedActions of a derived VObject ?
Alex Kon  
#2 Posted : Thursday, September 16, 2010 2:41:02 PM(UTC)
Alex Kon

Rank: Advanced Member

Groups: Guest
Joined: 1/31/2005(UTC)
Posts: 458

Was thanked: 5 time(s) in 5 post(s)
Hello mzhao,

'Action' is something that can be done with VObject by user interacting with control points. And SupportedActions property is member of IControlPointsProvider interface. If custom object extends existing VObject, it can add it's own implementation of IControlPointProvider to the base class (using protected member JointControlPointsProvider) and all actions from this new provider will be visible for user.

Please, could you check - maybe you removed GenericControlPoints provider from your derived object? In that case all standard actions, will be removed with it.
mzhao  
#3 Posted : Thursday, September 16, 2010 11:25:25 PM(UTC)
mzhao

Rank: Advanced Member

Groups: Guest
Joined: 9/10/2010(UTC)
Posts: 57

Thanks: 1 times
thank you, Alex.

you are correct. GenericControlPoints provider is removed in the codes.
Users browsing this topic
Guest (3)
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.