Page 1 of 2
Horizontal menus
Posted: 11 Feb 2013 16:39
by alloedee
Hey Lemurians.
I was wondering if it is possible to make menus that are horizontal instead of vertical?
My problem is that if I have a menu in a container close to the buttom of the container, the menu options can't go outside of the container.
Re: Horizontal menus
Posted: 12 Feb 2013 07:27
by Macciza
Yeah
I guess it could be done with a bit of scripting
The other option is to script it to move upwards and back
Will have a look into it at some point
MM
Re: Horizontal menus
Posted: 12 Feb 2013 09:02
by lABl
Hi Allodee,
You can try something with pads instead with a bit of scripting, I attached a small example.
Hope that helps,
Cheers,
Re: Horizontal menus
Posted: 12 Feb 2013 09:24
by Softcore
Here is a horizontal menu....To map it to your controlled software map the variable Container.items.selection
Oooops AB was faster!
Re: Horizontal menus
Posted: 12 Feb 2013 12:32
by alloedee
Thank you for your help, that did the trick
Re: Horizontal menus
Posted: 12 Feb 2013 14:11
by Macciza
Hi All
Here is a slightly revised version of AB's - that responds more like a normal object . . .
You can get its vale by using HorizMenu_.selection and it responds to HorizMenu_.selection=index to set its value
Of course you can rename the Container as you require . .
A little bit more work and it could be a nice virtual Object perhaps
And a little example Project
I am thinking of adding a 'Modules' sub-Forum so we can get the Module Library better organised and supported - and we can link some of this to a new thread there.
I have a few other modules ready to at least release as beta's - and I think it would be good to have an area for more focused discussion on modules . ..
Cheers
MM
Re: Horizontal menus
Posted: 12 Feb 2013 17:55
by Softcore
Yeah I believe more modules would be a great addition - for usage and educational purposes alike....
Re: Horizontal menus
Posted: 13 Feb 2013 00:48
by lABl
Softcore wrote:
Oooops AB was faster!
@Macciza, cool, I had not any bidirectional work on that example, I have updated it (attached) using pads instead of switches, it makes code more simpler imho.
CHeers,
Re: Horizontal menus
Posted: 14 Feb 2013 16:39
by lABl
Hi Folks,
I have tweaked it a little bit while having the coffe, now you can change dynamicaly the number of entries by using the entries variable (1-16 you can change this if you need using rows too) You also can use the column box, it will work too.
- Captura de pantalla 2013-02-14 a las 16.59.10.png (12.89 KiB) Viewed 3532 times
Also changing the off color of "selected" pad will change the color of items pads too.
- Captura de pantalla 2013-02-14 a las 17.30.22.png (10.71 KiB) Viewed 3532 times
Here the file if anyone is interested:
About of lemur modules, there is a thread on projects forum, quite quiet though, maybe some uploads could be compiled there?
Cheers,
Re: Horizontal menus
Posted: 15 Feb 2013 14:45
by lABl
Just found the modules thread, come on guys, post your "things"! I have updated it with some recent uploads.
http://liine.net/forum/viewtopic.php?f=26&t=1552