Stefan Bender Posted October 9, 2019 Share Posted October 9, 2019 How can PIOs know the current settings of the eyedropper tool so they can support the tool? I see two functions // Eyedropper notifies that it is going to put the record 'hObjRecordCopy' as record for the current parametric object // In this event the object can alter the copy to ensure correct data transfer (the data has already been copied to the record) // NOTE! This object's record is still in place when this event is called virtual void OnEyedropperPrepareCopy(MCObjectHandle hObjRecordCopy); // Eyedropper notification that has finished with copying this object virtual void OnEyedropperAfterCopy(MCObjectHandle srcObject); in VWParametricEventSink that allow the PIOs to do something before and after copying, but how can the PIOs know which of the options of the eyedropper tool are set? Imho some data type "EyedropperToolPreferences" should be passed to these functions so the PIOs can react accordingly. Or is there another way for the PIOs to support the eyedropper tool? Thanks for any help, Stefan Bender Quote Link to comment
JBenghiat Posted October 10, 2019 Share Posted October 10, 2019 This is pure speculation based on the parameter names, but is it purely for dealing with the PIO parameter option of the eyedropper? Or at least the event only raises when the user checks the PIO option? Quote Link to comment
Stefan Bender Posted October 21, 2019 Author Share Posted October 21, 2019 I don't know, but I had hoped that these functions are called so the PIO can handle copy/paste on its own. There are so many Eyedropper options for various graphical attributes that the PIO should need to know which of them are switched on so it can handle the transfer accordingly. 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.