Home Forums FlexGanttFX Drag&Drop

Tagged: 

  • Author
    Posts
  • Martin
    Participant
    Post count: 10
    #12873 |

    I would like to show visual feedback during Drag&Drop where drop for an activity is allowed.
    What is the best approach to mark certain areas of a row (complete row or just some timeslots) with a special color during Drag&Drop?

  • Dirk Lemmermann
    Keymaster
    Post count: 71
    #12876 |

    Just like in FlexGantt (for Swing) 🙂

    Add a system layer to GraphicsBase (see GraphicsBase.getBackgroundSystemLayers()). Inside the layer you can retrieve the currently dragged activity by calling GraphicsBase.getDragAndDropInfo(). The drag and drop info contains the dragged activity (bounds), the time interval where the dragged activity would be dropped, the row over which the activity is currently hovering.

You must be logged in to reply to this topic.