Graphical drop-down selector

For general discussion related FlowStone
User avatar
Spogg
Posts: 3368
Joined: Thu Nov 20, 2014 4:24 pm
Location: Birmingham, England
Contact:

Re: Graphical drop-down selector

Post by Spogg »

HughBanton wrote:... The mouse 'transparency' problem still exists, where you sometimes end up adjusting more than you bargained for.
H


The only way I know to prevent the mouse from operating on controls behind the front one is to turn off any Views behind it.
Johan’s synths generally feature a central multi-functional edit area where you can choose what you view there by switching the view signals. By turning a view off, any mouse action is also disabled.

EDIT:
I just read your post on Discord so what I suggested here probably won’t apply. The regular selector transfers the dropdown to Windows so the Windows selection list doesn’t pass mouse signals to the FS editor while the dropdown is active.
User avatar
HughBanton
Posts: 265
Joined: Sat Apr 12, 2008 3:10 pm
Location: Evesham, Worcestershire
Contact:

Re: Graphical drop-down selector

Post by HughBanton »

@Tulamide came up with a perfect & simple solution. I've modified appropriately and posted again on Discord.

You use a Ruby $global - I've called it $notSel - which == true when the Drop-down selector is not in use.

Then, in any mouse-driven item underneath, you go ..

Code: Select all

def isInMousePoint x,y
return $notSel      ### instead of 'return true'
end

and that selectively removes mouse control when the drop-down is in use. Bingo!

Thanks Tula :D

H
Attachments
graphic_drop_down_v6.fsm
for FS4 only!
(125.33 KiB) Downloaded 643 times
RJHollins
Posts: 1573
Joined: Thu Mar 08, 2012 7:58 pm

Re: Graphical drop-down selector

Post by RJHollins »

Which FS version ?
User avatar
HughBanton
Posts: 265
Joined: Sat Apr 12, 2008 3:10 pm
Location: Evesham, Worcestershire
Contact:

Re: Graphical drop-down selector

Post by HughBanton »

It's done in the latest Alpha version :oops:
Sorry about that but I've used Alpha versions ever since they became available, and meanwhile I've somehow let my 3.0.6 toolbox get so depleted that it's really hard for me to convert stuff over now :(
H
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Graphical drop-down selector

Post by tulamide »

Before you thank me, know, that this solution has a flaw. Since in plugin form all copies of the same plugin share ONE Ruby engine, they also all share this one global. It is near impossible to manually control two or more dropdowns in several instances at the same time, therefore it is unlikely to become a problem. But you should be aware of it.
"There lies the dog buried" (German saying translated literally)
Post Reply