B4J Question drag drop appointments pane

MarcRB

Active Member
Licensed User
Longtime User
I am trying to build a calendar in B4J where appointments can be moved in time and day using draggable panels.

However, I’m stuck — mainly on the drag & drop part.
I have looked at the examples Draggable View, jDragAndDrop(2).lib, and Drag textfile into TextArea, but I still can’t get a panel to move.
I suspect I’m either overthinking it or missing something basic drag&drop lessons.

My setup is a panel representing a day, repeated 7 times side by side. Inside each day panel are appointment panels.
These are positioned according to a timeline, with their height representing the duration (similar to Outlook Calendar / Google Calendar in week view).

Does anyone know of an example where drag & drop of panels is implemented, or where I can find the correct information?
I’m not looking for a complete calendar solution — I hope I can build that myself — but I do need a starting point for drag & drop.

Thanks in advance,
Marc
 
Solution
hi there!

check here:

Magma

Expert
Licensed User
Longtime User
hi there!

check here:
 
Upvote 0
Solution

MarcRB

Active Member
Licensed User
Longtime User
@Magma Thanks. I think this can help me.
Maybe I have to change to CustomListview as container for the appointments nodes.
Till this moment I tried to do it with a regular pane.
 
Upvote 0
Top