I’m trying to implement normal Drag and Drop behaviour by deriving my components from DragAndDropContainer and Component base classes.
The problem i encounter is that every time i call startDragging the following happends…
it fails while trying to cast itsself to a Component (see code snippet below).
does anyone has a clue what i’m doing wrong and or has an example of a working Drag and Drop application…
any help is greatly appreciated…
void DragAndDropContainer::startDragging (const String& sourceDescription,
if (dragImageComponent != 0)
if (im != 0)
Component* const thisComp = dynamic_cast<Component*> (this);