Hi Nathan,
To enhance the performance of drag-and-drop in your app and potentially customize the cursor beyond MATLAB's basic black-and-white icon limitations, consider the following strategies:
Optimize Drag-and-Drop Functionality:
- Update component positions less frequently or only after significant mouse movements.
- Temporarily replace complex components with simpler outlines during drag operations.
- Attempt to minimize the number of redraws and graphical updates during dragging.
Custom Cursor Alternatives:
- MATLAB's built-in support for custom cursors is limited to simple, small black-and-white images. For more advanced cursor customization (like colorful or larger cursors), MATLAB does not offer direct support.
- You might explore deeper Java integration within MATLAB for more advanced cursor customization, though this can be complex and not guaranteed to work across all platforms.
- Create a movable figure that mimics a custom cursor by following the mouse pointer. This figure can be transparent and display a colorful image, acting as a pseudo-cursor.
Given MATLAB's limitations, optimizing your current drag-and-drop function and using creative workarounds like an overlay figure may offer the best path forward for both performance improvements and enhanced cursor customization.