Sorry to bump so early but dropping an example so people know what I’m talking about
I need a grip for this custom list and as you can see I already have the logic down. So what’s the problem? The modal operator here only invokes after the user clicks the button and releases. I need to activate it on first click, drag to resize, and stop the operator when the left mouse button is released.
As it is now, you click and release to start resizing, resize, then click again to stop. Awkward much? It’s a similar case for the scrollbar (yeah, I did the scrollbar too, and you can’t drag it either; it’s all buttons).
So I need to start listening for events as soon as the mouse is on the button and launch the operator manually, that’s not really a problem. But if I’m unable to tell which button I’m hovering, that’s as far as I can go.
I could manually calculate the position of the widget from region position, height and width, but if I add more panels then that approach fails as soon as the user shuffles them around.
All in all, just the mere confirmation that what I want to do is not possible is good enough at this point. That at least I can rub in a dev’s face! Hehe.