But you could overlay a transparent panel and use its mouse callback for this. But then you‘ll loose the ability of dragging the sample area.