Problem: menu Shift to Right is ignored

Appeon 6.5


Note the way I use this is by having a prebuilt menu with file, edit,
window, help on it.
The window and help have shifttoright = true

Then, I dynamically add menu items between the edit and window menu
items. The shifttoright does not work in appeon when used this way (PB
works).

I have a work around for this:

What I do is to run a loop of all top level menu items (right to left
on the top of the menu) and if the menu item has shifttoright = true,
then I make it invisible.
I run another loop to make it visible afterwards. Making it invisible
then visible within the same loop won't fix all the menu items, so I
have to run it to make ALL shifted items invisible, then making the
visible will work.

menu lm_parent

lm_parent = window.menuid
ll_ubound = upperbound(lm_parent.item[] )
for ll_x = 1 to ll_ubound
if lm_parent.item[ll_x].shifttoright = true then
lm_parent.item[ll_x].visible = false
next
for ll_x = 1 to ll_ubound
if lm_parent.item[ll_x].shifttoright = true then
lm_parent.item[ll_x].visible = true
next