Combo box limitation ?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7230
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Combo box limitation ?

Post by jacque » Fri Oct 28, 2022 5:55 pm

dunbarx wrote:
Thu Oct 27, 2022 6:02 pm
If you have your menuItems open, you can use the arrow keys to move up and down along the list, but then you must use the mouse to select a menuItem. I am not sure that pressing "Enter" or "Return" will do anything at all.
On Windows the return or enter key will do the selection. LC will still get a menupick message.

I think there's an option on Mac for that too buried in the system settings but I can't remember if I'm hallucinating or not.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9657
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Combo box limitation ?

Post by dunbarx » Fri Oct 28, 2022 9:22 pm

Jacque.

Interesting. Would it be accessible to ordinary mortals? I do not think it is a finder setting, nor a system preference.

Craig

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9657
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Combo box limitation ?

Post by dunbarx » Fri Oct 28, 2022 9:25 pm

CAsba.

So you see that different platforms behave differently, even down to the User Interface Guidelines.

Which are you interested in? All of them? If so, unless Jacque can figure out how to make those keys work on a Mac, you will have to default to using the mouse.

Craig

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9833
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Combo box limitation ?

Post by FourthWorld » Fri Oct 28, 2022 10:39 pm

CAsba, of the 30 or so items in the control, how many are presets and how many are ad hoc additions from the user?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7230
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Combo box limitation ?

Post by jacque » Sat Oct 29, 2022 12:18 am

dunbarx wrote:
Fri Oct 28, 2022 9:22 pm
Interesting. Would it be accessible to ordinary mortals? I do not think it is a finder setting, nor a system preference.
I'm not sure it works on LC buttons but here's a list:
https://support.apple.com/en-us/HT204434
Scroll down to "Navigate menus with your keyboard".
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

bobcole
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 135
Joined: Tue Feb 23, 2010 10:53 pm
Location: Saint Louis, Missouri USA

Re: Combo box limitation ?

Post by bobcole » Sun Oct 30, 2022 11:52 pm

Combo boxes are only one menu type but an important one.
Some menu types have peculiarities of their own.
I put together an example stack to show examples of the various menu types (see below).

I don't remember having previously figured out how to use a cascading menu so this was a good exercise for me.
Cascading menus are interesting; I'll probably use them more often now that I have a working sample.

I think the Option Menu can be used for card navigation. Just stuff it with the cardNames function and, voila, select a card name. Easy.

Hope this is helpful,
Bob

Menu Buttons.livecode.zip
(2.92 KiB) Downloaded 48 times

CAsba
Posts: 363
Joined: Fri Sep 30, 2022 12:11 pm

Re: Combo box limitation ?

Post by CAsba » Mon Oct 31, 2022 11:08 am

Hi all,
I didn't realise my query would spark such interesting and wide-ranging responses. I will certainly look into the examples given. I should emphasise that the menu is not to be used by the user, but just by me as a nav tool whilst building the programme. Many thanks to all of you.

stam
Posts: 2682
Joined: Sun Jun 04, 2006 9:39 pm
Location: London, UK

Re: Combo box limitation ?

Post by stam » Mon Oct 31, 2022 12:22 pm

It's both an advantage and a disadvantage that randomly discussions go off on a tangent and take a life of their own. Sometimes this is good and leads to interesting discussions with many learning points. Sometimes it's bad as it leads to irrelevant discussions that sometimes decline into chaos. Certainly makes for more interesting reading ;)

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9833
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Combo box limitation ?

Post by FourthWorld » Mon Oct 31, 2022 5:09 pm

CAsba wrote:
Mon Oct 31, 2022 11:08 am
I should emphasise that the menu is not to be used by the user, but just by me as a nav tool whilst building the programme.
Are the menu items card names?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9657
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Combo box limitation ?

Post by dunbarx » Mon Oct 31, 2022 7:45 pm

Richard.

I assume so, which is why I wrote to CAsba, emphasizing the last line:

Code: Select all

on menuPick pItemName
   answer pItemName
   answer the label of me
   answer the menuHistory of me
   go card pItemname  -- for your particular use
end menuPick
Craig

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”