Page 1 of 1

DropList Options

Posted: Fri Nov 14, 2014 7:25 am
by SBAudio
Hi all,

I know with the DropList module you can input an array like shown below and get a list with 1 category and 3 sub items, but are there any tricks to get a horizontal rule or to disable an item? (e.g. right-clicking on your desktop shows a list with hr and disabled items)

Code: Select all

Category
<<
Item1
Item2
Item3
>>


I haven't been able to find much on this, and was hoping someone here might. Thanks!

Re: DropList Options

Posted: Fri Nov 14, 2014 9:40 am
by Nubeat7
afaik no, but in general it is possible to disable items (when they are in use for example) but you cannot "mark" them in the droplist here is a work around, here a info window opens when an item is in use already...

viewtopic.php?f=2&t=2787&p=14756&hilit=exclusive#p14756

but it should also be possible to change the droplist items if any case is given, so you could put a "*" in front of any item which cannot be used atm... things just getting more complex then

Re: DropList Options

Posted: Fri Nov 14, 2014 11:16 am
by tulamide
If I only knew what you mean by "horizontal rule". I have no clue, but would try to help there, too.

In Ruby, you can get at least one step further. You can set exactly one (1!) item to be disabled. Unfortunately there is no visual feedback, it is just not selectable anymore, so I named that item "disabled" in this example, for you to find it quicker.

Re: DropList Options

Posted: Fri Nov 14, 2014 1:31 pm
by Nubeat7
thats cool tulamide totally overlooked this in the user guide! :)
would be cool to use an array for the disabled items

i implemented a prefix option for used elements in the exclusive selector, like this you can mark multiple items as used or disabled..

Re: DropList Options

Posted: Sat Nov 15, 2014 12:18 am
by SBAudio
Thank you Tulamide! That is exactly what i was looking for! The horizontal rule is just a separator line. I could create an item with the label as "____________", but if there is a way to do that is ruby, that'd be awesome!

Re: DropList Options

Posted: Sun Nov 16, 2014 2:00 am
by Perfect Human Interface
TheOm created a drop list with a grayed-out item with Ruby in his Line Editor example project, but there was some kind of bug in FS causing access violation errors so he went back to the Drop list prim.

Re: DropList Options

Posted: Tue Nov 18, 2014 4:59 am
by JB_AU
A menu line break

Re: DropList Options

Posted: Tue Nov 18, 2014 4:54 pm
by Nubeat7
here is an advanced ruby selector

it supports categorising items with "<<" , ">>" and it has an array input to set several items as "disabled",
you can set a prefix for disabled items and choose if a messagebox should pop up if a disabled item gets selected.