Search code examples
drag-and-dropcodenameone

Container becomes 50% transparent when dragged


I tried dragging containers, but when dragged they become 50% transparent. When dropped, they become normal again.

How can I avoid this? So that they stay fully opaque during all the dragging process

I don't have any code to provide as it's simply a question.

Thanks


Solution

  • This is done here. You can override the method to change the behavior but that seems redundant for such a small change.

    That's why I made this change which after the Friday update (March 22, 2024) will let you write this:

    Component.setDefaultDragTransparency((byte)255);