Scrollablepane events
Posted: Wed May 04, 2016 10:25
Hi,
I've found really old subjects regarding this thing but it seems it's not been resolved yet or I went wrong somewhere.
So, I presume you're aware of scrollablepane not being affected by drag n drop events and it works on inner controls and its main container is const so can't be hooked. I've tested many options with overlapping mask windows etc but all these things complicate things too much - a kind of control over the vertical height of pane is needed to keep the mask responsive. I'm not creating slots but I keep pace with layout container and scrollable pane which gives the desired functionality in minutes but I hit a wall with these events.
The main target is simple drag drop which moves items from one window to another after dropped on empty area or do other stuff when element drops on another element. Second option works fine, I fight with empty space that don't catch events at all. By removing the pane everything works like charm because inner containers will catch events. Finally I decided to make wide static button which says 'drop here to add' But finally I'd be glad hearing more about this problem cause maybe I've missed something again:P
PS: I'll try to fill empty areas with empty drag containers so they will cover all areas! Anyway, I'm still open for suggestions:)
Thanks in advance
I've found really old subjects regarding this thing but it seems it's not been resolved yet or I went wrong somewhere.
So, I presume you're aware of scrollablepane not being affected by drag n drop events and it works on inner controls and its main container is const so can't be hooked. I've tested many options with overlapping mask windows etc but all these things complicate things too much - a kind of control over the vertical height of pane is needed to keep the mask responsive. I'm not creating slots but I keep pace with layout container and scrollable pane which gives the desired functionality in minutes but I hit a wall with these events.
The main target is simple drag drop which moves items from one window to another after dropped on empty area or do other stuff when element drops on another element. Second option works fine, I fight with empty space that don't catch events at all. By removing the pane everything works like charm because inner containers will catch events. Finally I decided to make wide static button which says 'drop here to add' But finally I'd be glad hearing more about this problem cause maybe I've missed something again:P
PS: I'll try to fill empty areas with empty drag containers so they will cover all areas! Anyway, I'm still open for suggestions:)
Thanks in advance