SynthMaker

how to hide a gui element?

Archive · 2006 12 old posts

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

NothanUmber ·

Has probably been asked already by someone else (didn't find it though at a first look):

What is the easiest possibility to completely hide certain gui elements depending on the state of the synth/effect? Just putting a multiplexer (whose second output leads nowhere) between the mgui of the gui element to hide and the mgui component of it's parent doesn't seem to work. (Perhaps one could temporarily move the element in question to a place somewhere beyond the viewable boundaries but that solution is a little bit ugly...)

Greetings, NothanUmber

angstrom ·

a simple visibility demo

this demo tabs visibility between two modules. To achieve what you want, making a module invisible - rename the second wireless recieve from 'otherthing' to 'nothing', this will make it tab the visibility of the first dial between visible and invisible.

the thing is .. I am guessing you figured out where you were going wrong the instant after you posted, eh! 🙂

NothanUmber ·

thanks angstrom, exactly what I was searching for!

I am guessing you figured out where you were going wrong the instant after you posted, eh

erm, moments after looking at what you did in your schematic would be a more appropriate description... 🙂 (connecting nothing to the second output of the multiplexer doesn't seem to work (presumably one can't select outputs where nothing is connected to), so I introduced a dummy rect with size zero for the hidden status - which works.)

Greetings, NothanUmber

oddson ·

NothanUmber wrote: ...connecting nothing to the second output of the multiplexer doesn't seem to work...

But you can have the first output connected to nothing..

Connect to an item twice then delete the first connection. This has the additional advantage of the zero index being equal to a false boolean - so 'false' means don't show the item.

NothanUmber ·

Thanks, nice trick!

Greetings, NothanUmber

Shifrin ·

NothanUmber wrote: Thanks, nice trick!

That is indeed a nice trick there! 😉

Shif.

infuzion ·

I personally like to send an empty switch-out to a "null" module, first off so I know the loose connection isn't a mistake, but also incase they do something to the switch modlues later to make them act different.

Tom7777 ·

I use the same method as infuzion and just have an empty module with a single input which i usually name Empty, i doubt it makes much difference which way you do it though 🙂

Dj-Grobe ·

I try opne this oms in the last version of syntmaker and synthmaker crash!

http://plugins.timeshard.com/dev/simplevis.osm

i parecaiet some fix, want investigate how hide objects gui : )

angstrom ·

Hi, I've not had a chance to install the latest SM as I havn't had time to backup my modules.

the wiki has a version of a similar thing [old link]

not sure if that helps at all.

if that one doesn't work it must be due to either a bug or a replacement of a primitive.

sambean ·

Dj-Grobe wrote: I try opne this oms in the last version of syntmaker and synthmaker crash!

http://plugins.timeshard.com/dev/simplevis.osm

i parecaiet some fix, want investigate how hide objects gui : )

Works fine here.. Check there isn't an old file in your recovery folder (Outsim/Synthmaker/Recovery) that SM can't open..

Sam

Dj-Grobe ·

yes sorry its demaged osm download, bad dsl line problem.

Working now : )

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.