Re: Getting a list of menu bars, menu's and menu items

2017-09-29 Thread Two Way Communications via 4D_Tech
Hi Keisuke, thanks for pointing this out. As I was looking for a way to list the contents of the menus as defined in the menu editor, I wasn’t looking at the commands to create dynamic menus…. … my bad ;-) Regards, Rudy Mortier Two Way Communications bvba - > On 28 Sep

Re: Getting a list of menu bars, menu's and menu items

2017-09-27 Thread Keisuke Miyako via 4D_Tech
you could also use Create menu($) to duplicate it in memory. > 2017/09/28 1:20、Two Way Communications via 4D_Tech <4d_tech@lists.4d.com> > のメール: > I eventually realised that I need to call SET MENU BAR($i) for every menu bar > I want to get the menus and menu items for,

Re: Getting a list of menu bars, menu's and menu items

2017-09-27 Thread Two Way Communications via 4D_Tech
Hi Jeremy, No, I am not adding dynamic menus. I needed a list of all the menu bars, their menus and their menu items as set in the Menu editor. I eventually realised that I need to call SET MENU BAR($i) for every menu bar I want to get the menus and menu items for, and then to this:

Re: Getting a list of menu bars, menu's and menu items

2017-09-26 Thread Jeremy French via 4D_Tech
Hi Randy, I gather you are adding one or more dynamic menus to the menu bar created in the Menu Editor. In that case, you need to work with references, not a positional integer. The positional index works only for menus created in the Menu Editor. Try this, which assumes no hierarchical

Re: Getting a list of menu bars, menu's and menu items

2017-09-26 Thread Two Way Communications via 4D_Tech
Hi Jeremy, Thanks for the input. However, it doesn’t work completely. Although you can get a list of menus in the menu bar (GET MENU ITEMS), this doesn’t work when you pass the menu ref for one of the menus. In this case, GET MENU ITEMS returns empty arrays Has anyone else come across this?

Re: Getting a list of menu bars, menu's and menu items

2017-09-26 Thread Jeremy French via 4D_Tech
Hi Rudy, Take a look at the commands in the “Menus” theme: http://doc.4d.com/4Dv16R3/4D/16-R3/Menus.201-3217435.en.html Then in the Application Environment, activate the menu bar you are interested in and loop through the menus and menu items like this: For ($menu_i;1;Count menus)

Getting a list of menu bars, menu's and menu items

2017-09-26 Thread Two Way Communications via 4D_Tech
I have been looking through the documentation and on this list, and there seems to be no way to programatically produce a list of all the menu’s (defined in the design environment) and their menu items. Am I overlooking something? Can it even be done? Met vriendelijke groeten, Rudy Mortier