Stack widgets after moved with mouse? #3027
-
This is a bit niche, but hoping someone might have a clever solution for this! Let's say you have an application with several widgets that can be grabbed and moved with the mouse. When moving a widget, you want to stack it on top of any other widgets underneath. You would obviously need an ordered set of layers, but I'm struggling with a method of keeping the moved widget at the top of stack. Many thanks in advance for any advice! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Sorry a solution finally clicked after rubber ducking this! If you post a message when the widget is 'grabbed', then the message handler can simply append a new layer and set this to the widget. |
Beta Was this translation helpful? Give feedback.
Sorry a solution finally clicked after rubber ducking this!
If you post a message when the widget is 'grabbed', then the message handler can simply append a new layer and set this to the widget.