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