Page 1 of 1

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

Posted: Fri Jul 22, 2022 7:22 pm
by cmhjon
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 3980 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 :)

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

Posted: Sat Jul 23, 2022 6:05 am
by RogGuay
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

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

Posted: Sat Jul 23, 2022 8:58 pm
by FourthWorld
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

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

Posted: Sat Jul 23, 2022 11:33 pm
by RogGuay
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

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

Posted: Sun Jul 24, 2022 1:04 am
by FourthWorld
Which method are you using, Roger, and where have you spent the most time?

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

Posted: Sun Jul 24, 2022 2:26 am
by dunbarx
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

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

Posted: Sun Jul 24, 2022 5:50 am
by RogGuay
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

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

Posted: Sun Jul 24, 2022 7:03 pm
by FourthWorld
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.