Cascading(?) Drop Down Menus with Pop Up Image?

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

Post Reply
cmhjon
Posts: 175
Joined: Tue Aug 04, 2015 11:55 am

Cascading(?) Drop Down Menus with Pop Up Image?

Post by cmhjon » Fri Jul 22, 2022 7:22 pm

Hi everyone,

I'd like to build a cascading (if this is not the right terminology, please correct me) drop down menu and when the mouse hovers over a selection in the submenu, a different image would pop up for each submenu item. Can this be done in LC? Here's a poorly photoshopped example of what I am looking for:
Menu Sim.jpg
Menu Sim.jpg (54.7 KiB) Viewed 3923 times
As you can see, selecting an item in the primary menu spawns a submenu to the right and then when a submenu item is highlighted, a popup image occurs. Of course, the user would select an item in the submenu and continue.

Any help would be greatly appreciated!

Best regards,
Jon :)

RogGuay
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 114
Joined: Fri Apr 28, 2006 12:10 am
Location: Seattle

Re: Cascading(?) Drop Down Menus with Pop Up Image?

Post by RogGuay » Sat Jul 23, 2022 6:05 am

Hi Jon,

Yes of course this can be done in LC, but you'll have to build your own from scratch. Unless, of course, somebody else has already done it and is willing to share. If no one else responds, I'll help you get started over the next few days.

Cheers,
Roger

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

Re: Cascading(?) Drop Down Menus with Pop Up Image?

Post by FourthWorld » Sat Jul 23, 2022 8:58 pm

I haven't done this with cascading menus, but I rarely use cascading menus for all the reasons Microsoft and Apple suggest avoiding them whenever practical (spolier: they're physically cumbersome to use).

But for primary menus you can use stacks as menus, which give you a lot of flexibility, including using graphics as icons in the menu item buttons:
https://forums.livecode.com/viewtopic.p ... 98#p108994
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

RogGuay
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 114
Joined: Fri Apr 28, 2006 12:10 am
Location: Seattle

Re: Cascading(?) Drop Down Menus with Pop Up Image?

Post by RogGuay » Sat Jul 23, 2022 11:33 pm

Ya, I thought this would be easy, but I am indeed finding it to be "cumbersome", and not at all straight forward!

Big Mouth Roger

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

Re: Cascading(?) Drop Down Menus with Pop Up Image?

Post by FourthWorld » Sun Jul 24, 2022 1:04 am

Which method are you using, Roger, and where have you spent the most time?
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: 9738
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Cascading(?) Drop Down Menus with Pop Up Image?

Post by dunbarx » Sun Jul 24, 2022 2:26 am

Hi.

I would check the use of stack menus, page 180 in the user guide. That allows other controls, like images, to substitute for text. I have never used any of that, but I bet that creating subMenus with the tab character, as one would do in a standard pulldown button might allow you to do what you want.

Craig

RogGuay
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 114
Joined: Fri Apr 28, 2006 12:10 am
Location: Seattle

Re: Cascading(?) Drop Down Menus with Pop Up Image?

Post by RogGuay » Sun Jul 24, 2022 5:50 am

Richard,

I was just trying to assemble list fields to act like a cascading menu, but obviously passing mouse events from one control to another dynamically is difficult.

Roger

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

Re: Cascading(?) Drop Down Menus with Pop Up Image?

Post by FourthWorld » Sun Jul 24, 2022 7:03 pm

The built-in method is to use stacks as menus. Before the macos port it was the only type of menu the engine supported. Follow the link I posted above, let me know if I can help further.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”