Home Forums FlexGanttFX Hey! Drag&Drop

  • Author
  • kullboys
    Post count: 1
    #13725 |

    Hello everyone

    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
    Post count: 71
    #13726 |

    Add a custom system layer to the list of background layers. These layers are drawn for each row inside the graphics area. They will be redrawn when the mouse cursor hovers over them (e.g. when performing a drag and drop). Inside the layer the drawLayer() method gets invoked and you can check the “draggedActivity” property of the GraphicsView to see if your row “likes” the dragged activity.

  • Dirk Lemmermann
    Post count: 71

You must be logged in to reply to this topic.