SynthMaker

Custom dropdown lists

Archive · 2010 9 old posts

From the original SynthMaker forum (2004–2014), with its members’ names and dates.

mwvdlee ·

I suddenly had a hunch yesterday on how to do customized dropdown lists and quickly made a test. Today I extended it a bit to make a decent example, the result is this:

It's far less efficient than it needs to be, but it works to demonstrate the trick. Nor is it bugfree or complete in any sense. We could probably make the dropdown more generic, allowing drop-in replacement with a "normal" custom list control or other types of controls. This is just meant to demonstrate how to do the position.

aliasant ·

Interesting. A lot simpler then my overly complex dropdowns. The "unpop" part makes SM crash for me though. Havnt found a way to unlink it without SM dying. Its link is dashed red so theres a feedback problem?

Update: The crashing stops if I delete one of the dropdowns. Update2: 🙂 Ofcourse... The unpop should not go out of the dropdown module. Ive only spent 2 minutes looking at this but that part needs a remake. Update3: Solved that. Just gonna try to opimize it a bit more before I upload it.

aliasant ·

Heres a slightly better version with a few saved redraws but the big problem is the loop drawing back, text and marker at the same time. Back and text could perhaps be drawn once and the loop only draws the much smaller marker?

mwvdlee ·

aliasant wrote: Heres a slightly better version with a few saved redraws but the big problem is the loop drawing back, text and marker at the same time. Back and text could perhaps be drawn once and the loop only draws the much smaller marker?

Actually, the unpop is important in order to close all other dropdowns whenever another one opens. In an ideal world, any mouseclick anywhere would generate the unpop trigger. Either way, here's an update with the unpop restored, but crashing fixed. Also some general cleanup and a dropshadow (why? cause it as easy as drag & drop from MissingLinks)

Here's the schematic:

There also seem to be a few issues with the selection magically changing at times, which is a pretty significant bug.

aliasant ·

Tha works nicely! My own dropdowns can stay open. Sometimes its nice to have more then one open at the same time.

aliasant ·

Had some fun this morning. Tried to fix a bug that did this: When first clicked and slowly moved the mouse down to index 0 ( First option in this case "Arial") it didnt get highlighted. Only after moving on to index 1 or more and then back to 0 again it worked. I fixed it but got lost in graphics on the way so theres probably 10 much simpler ways to do it but it worked...

I couldnt help myself so I made some graphical changes too. Do what ever with this. Im just experimenting but check out the new shadow system. That worked a bit smoother I think, except that I had to output the area for redraws.

I should have cleaned up after me. Its a mess inside but I have no more time right now.

Dell ·

Nice...

I used the pop ups in one of my designs.

drumma ·

😍 Thanks guys I was damn lazy to make this thing 🙂

CoreStyler ·

I've create such thing but is hard to match indexes and allow switching. 😝

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.