I am trying to create a simple toolbar with draggable components and I am a little puzzled by one problem. If I close my drag widget in DragAndDropWrapper and set my layout to receive drag events, two things will happen that I donβt like from the point of view of the user interface:
The whole area of ββthe layout is behind, it turns blue (for a while) when I drag things (widgets, files, whatever) over it. How to disable this is a topic?
The entire area of ββthe widget is being dragged - this is a problem if I say other components of the user interface inside the widget that respond to drag and drop events.
How to set the drag area of ββmy widgets? I still want the whole packaged component to appear when dragging, but I only need to drag even when I drag, say, the title bar of the widget panel.
I think for now my workaround is to just make a small area of ββthe widget drag and drop, but I donβt think it will a) just or b) look beautiful (because when you drag the widget, it just draws it the draggable area is the title bar, say).
Any ideas?
Thank you very much in advance.
As
ac_
source share