From the original SynthMaker forum (2004–2014), with its members’ names and dates.
CoreStyler ·
Hi all.
I post here a popup that im using in one of my projects.
I started from About popup example..
What i need now and what i can't done is that:
How to make the Pop up draggable by mouse?
Another problem i have is that the knobs, the selectors and the buttons below the opened popup are still usable.
I need that all the control under the popup (when opened) are locked. ( i have for ex. the preset manager below, and it can cause the change of preset)
Jay ·
hi here is how i did a dragable window/popup a while ago! Feel free to use it or learn from it.
In this example there are two pop up windows each with embedded controls.
clicking the title bar of each popup gives that popup focus (layer to front)
hope it points you in the right direction 🙂
Best Regards
trogluddite ·
CoreStyler wrote: buttons below the opened popup are still usable.
SMs behaviour is that any mouse events keep 'falling through' the layers until they reach a control that has a primitive to make use of them.
You can stop the events 'falling through' by connecting a mouse area to the pop-ups MGUI, and then connecting one of each kind of mouse primitive to it (e.g. L-click, R-Click etc.). The outputs from the mouse primitives can be left disonnected, but they will still 'catch' the mouse events and stop them passing to underlying layers. Any controls inside the pop-up would be on top of this mouse event 'safety net' and will still function as normal.
rl ·
That's pretty cool, Jay. Only nag is the movement which does not correspond the mouse position. After releasing the mouse, the mouse pointer is somewhere else. I tried with various settings of the drag-accumulate's scale input. But no luck: with values >1 the window jumps around. Maybe the better strategy is to track the mouse position of the enclosing window and use that.
Jay ·
Ah thanks rl 🙂 I rattled that together a while ago and never went back to it!
I too had some difficulty in getting the curser to correspond to mouse movements so i will give your suggestion a little try and see if i can fix it 😀
Best Regards
Jay
Wrote something here? To have a post removed or your name hidden, write to [email protected].