Assembly Posted November 13, 2010 Share Posted November 13, 2010 How does one enable double click editing for event enabled objects?. VectorLab says: Edit Object If this property is enabled, one of four behaviors can be specified for this event. The default edit behavior can be invoked. For path objects, this is the Edit Group behavior. For other object types, the dialog saying "The selected object has no edit behavior." will be displayed. A custom edit behavior can be defined. In this case, the edit action will raise the kObjXPropSpecialEdit event, which can be handled in the object's event loop. Typically this is used to display a dialog into which the user can enter parameter values, and which would typically be the same dialog the user sees in the Preferences event. I've had a good go with both example 4 and 9, but am lost... Am I correct in thinking there are four types of edit events?. Is one of them the double click? How do I enable the edit event and get the double click active in the event CASE. Quote Link to comment
Assembly Posted November 13, 2010 Author Share Posted November 13, 2010 All examples start with vsoGetEventInfo(theEvent, theButton); CASE theEvent OF PROCEDURE vsoGetEventInfo( VAR outObjEvent :LONGINT; VAR outEventData :LONGINT); Is there an appendix with an Index for the event/values that OutObjEvent can return? Quote Link to comment
Assembly Posted November 13, 2010 Author Share Posted November 13, 2010 Developer page says refer to vstEventsConstants.px for list. Where do I find the file?. Quote Link to comment
Miguel Barrera Posted November 15, 2010 Share Posted November 15, 2010 I do not think you will find that file. The best source for the values is the SDK. The following values I found in the VW2008 header file MiniCadHookIntf.h but this file may have changed in recent versions. const ObjectPropID kObjXPropSpecialEdit = 3; // kObjectSpecialEditPropertyID property values: const unsigned char kObjXPropSpecialEditDefault = 0; const unsigned char kObjXPropSpecialEditCustom = 1; const unsigned char kObjXPropSpecialEditProperties = 2; const unsigned char kObjXPropSpecialEditReshape = 3; const ObjectEventID kObjOnSpecialEditID = 7; const ObjectEventID kObjOnReshape = 9; Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.