Skip to main content
Participant
October 6, 2009
Question

How to create a drag outline while using custom drag source.

  • October 6, 2009
  • 1 reply
  • 464 views

Hi All,

I am creating a plugin using sdk for cs2 in windows. I need to create a text frame on the document when I drag a text widget from a panel. I am using a custom drag source controller for the same and not dragsource as I am performing more requirements. This does not create a drag outline region. There is a method called 'DoMakeDragOutlineRegion' in the Basicdragdrop example provided in sdk. But it does not draw any outline. Is there something missed out in this example or do I need to add anything more to this existing code? Any help would be appreciated.

Thanks in Advance,

Pirathip.

This topic has been closed for replies.

1 reply

Inspiring
October 6, 2009

The BasicDragDrop example is misleading and as you found leaves out the interesting parts. E.g. that drop feedback drawing which is of course not factorised for reuse. Good news though, you should only need to go that far for own flavors (e.g. drop a color from color panel).

Unless you give more details on those "requirements" you better make the best out of a target flavor helper.

If you need custom drawing, search the SDK for keywords like ISprite, ITracker, HitTest ...

Dirk