select multiple values in option list

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
billworld
Posts: 188
Joined: Sat Oct 25, 2008 12:32 am

select multiple values in option list

Post by billworld » Tue Nov 11, 2008 7:15 pm

Am I missing something here or is it not possible to select multiple values within an option list? (I'm used to having this in FMP).

I need to filter the display of a field based on various values that should be selected in a separate filter option list field. Is this not possible?

malte
Posts: 1098
Joined: Thu Feb 23, 2006 8:34 pm
Contact:

Post by malte » Tue Nov 11, 2008 7:43 pm

set the multipleLines of the field to true. You might also want to set the noncontiguousHilites to true and maybe even the toggleHilites.

Cheers,

Malte

Klaus
Posts: 14194
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Post by Klaus » Wed Nov 12, 2008 12:12 pm

Well, all this and more is in my Scripting Conference Stack about "Controls".

But hey, don't let a small typo ("regoRurl ...") prevent you from working throught this (and other) useful stack!

billworld
Posts: 188
Joined: Sat Oct 25, 2008 12:32 am

Post by billworld » Wed Nov 12, 2008 5:00 pm

Actually, to be clear, the object in question is an object menu button, not, a field. I used the word "field" I guess improperly. (I'm still trying to get used to NOT referring to these objects as fields as prior programming environments I'm used to refer to them as such.)

Anyway, for buttons, I'm not seeing the multipleLines/hilite property in the PI.

I also tried the following in the Message Box which didn't work:

Code: Select all

set the multipleHilites of button "Option Menu" to true
I'm well aware of setting this property on FIELDS, I guess it's not possible with BUTTONS? If that's the case, I guess a workaround is to show/hide a field when the button is accessed. But, what pops up then won't look the same as one of the button controls.

Anyway, not a really huge issue with my project.
malte wrote:set the multipleLines of the field to true. You might also want to set the noncontiguousHilites to true and maybe even the toggleHilites.

Cheers,

Malte

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Wed Nov 12, 2008 5:26 pm

Buttons, Bill?! What exactly do you want to do? You can set the hilite of more than one button to true, usually you do this with checkboxes. You can also put a checkmark before more than 1 menu item in e.g. a popup menu button or a pulldown menu button, but not in an option menu button.

Best regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

billworld
Posts: 188
Joined: Sat Oct 25, 2008 12:32 am

Post by billworld » Wed Nov 12, 2008 5:41 pm

From my first post:

Code: Select all

I need to filter the display of a field based on various values that should be selected in a separate filter option list field. Is this not possible?
For proper RR semantics, replace "option list field" with "option menu button".

So the concept is to select multiple values in a button. Why a button? To gain by the "drop-down" aspect in addition to the visual niceties offered in a button control (3d, shadow, etc.).

Regardless, in my solution I decided on a different approach (selecting icons which represent the values).

I can live with the idea the option menu buttons only allowing the selection of a single value. There's likely UI guidelines out there which govern this anyway. I was just approaching this from the FileMaker Pro concept of drop-down list fields which function as a hybrid between RR scrolling multiple hilite fields and pop-up or option menu buttons.

Anyway, no need to dig deeper on this. I'm okay with it.

Thanks

Bill
Mark wrote:Buttons, Bill?! What exactly do you want to do? You can set the hilite of more than one button to true, usually you do this with checkboxes. You can also put a checkmark before more than 1 menu item in e.g. a popup menu button or a pulldown menu button, but not in an option menu button.

Best regards,

Mark

Post Reply