-
Popup Menu toolbar button to Window Communication
Dear Omnis people,
I tried to post this on the Omnis Dev list, but somehow it is not coming through therefore I post it here.
Past days I was working on some issues concerning popup lists in Omnis Studio. One problem I countered is that if I use a toolbar component Popup List which opens later on in the code a new Popup List with the commmand Popup menu from list … at the new Popup list has the items of the first menu and at the bottom the items of the new Popuplist, eg
Toolbar popuplist has
Toolbar popup item 1
Toolbar popup item 2
Lets say that the first item opens in some conditions a new popup list with some items, like:
New popupList item 1
New popupList item 2
What I get to see is:
Toolbar popup item 1
Toolbar popup item 2
New popupList item 1
New popupList item 2
And that is not quite the desired behaviour I want. Because I can reproduce this on Omnis Studio 10.1, I reported it to Omnis Software. In the meantime I tried to think of a workaround. One of the workarounds I could think of is to change the first Popup List to a Popup Menu. And this brought some other things with it. I thought a Popup Menu is instanced as a child of the window/toolbar, but instead it is instanced under $root.$menus. This gives that $cwind.$someMethod is not working. To get around this I found $topwind, but that feels a bit flaky to me. Theoretically this can not go wrong, but I would like a more tight or more clear connection between the two. I made a demo library and published it to Github: https://github.com/frogli-omnis/ToolBarPopupMenu
Does anyone if there a way how I can establish this other then a hard path $iwindows.windowName.$SomeMethod?
Grtz Henk
Log in to reply.