SynthMaker

Pop UP. How to drag?

Archive · 2010 5 old posts

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].

Before your first post

A few rules keep this a friendly place. You agree to them once.

Shown next to what you post, here and in the app. It doesn’t have to be your real name: 3–24 lower-case letters, digits or _ (capitals become lower case, spaces become _).

    Then your post goes up straight away.

    Delete this reply?

    Open it in SynthMaker?

    It goes on the track you’re editing there, in place of that track’s sound, and into My sounds. Your other tracks stay as they are.

    Want to keep that track’s sound? Start a new song in SynthMaker first (Song › New song), then open this.

    Report this reply?

    Only the developer reads reports. The person isn’t told who reported them.

    What’s wrong with it?

    Block this person?

    You won’t see their posts and replies here any more. They aren’t told, and you can unblock them at any time.

    People you’ve blocked

    Their posts and replies are hidden from you. Unblock someone to see them again.

    The community rules

    A few rules keep this a friendly place. Everyone agrees to them once, before their first post.