DropList Options

For general discussion related FlowStone
Post Reply
SBAudio
Posts: 6
Joined: Tue Jan 14, 2014 10:40 pm
Contact:

DropList Options

Post 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!
User avatar
Nubeat7
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna
Contact:

Re: DropList Options

Post 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
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: DropList Options

Post 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.
Attachments
ruby droplist.fsm
(510 Bytes) Downloaded 833 times
"There lies the dog buried" (German saying translated literally)
User avatar
Nubeat7
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna
Contact:

Re: DropList Options

Post 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..
Attachments
Exclusive Selector updatelist .fsm
(8.69 KiB) Downloaded 856 times
SBAudio
Posts: 6
Joined: Tue Jan 14, 2014 10:40 pm
Contact:

Re: DropList Options

Post 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!
Perfect Human Interface
Posts: 643
Joined: Sun Mar 10, 2013 7:32 pm

Re: DropList Options

Post 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.
User avatar
JB_AU
Posts: 171
Joined: Tue May 21, 2013 11:01 pm

Re: DropList Options

Post by JB_AU »

A menu line break
"Two things are infinite: the universe and human stupidity; and I'm not sure about the the universe."

Albert Einstein
User avatar
Nubeat7
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna
Contact:

Re: DropList Options

Post 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.
Attachments
advanced ruby selector.fsm
(8.82 KiB) Downloaded 879 times
Post Reply