Asking for an addon (Could this addon be created?)

 From:  Michael Gibson
11600.7 In reply to 11600.4 
Hi Mo,

re:
> I have a question for Michael:
> Is there any way to change the menuButton's arrow direction?
> When there is not enough space for menu, it opens underneath, but arrow stays on top.

So the way it works currently is that it will put the arrow below if it's in a UIPanel with dock="top", like if you change MainWindowLayout.xml and for the command bar edit dock="" to be <UIPanel dock="top" src="moi://ui/CommandBar.htm">

There isn't a way to control it separate from that but I will add in a dir="up" / dir="down" property.

But another way you can show a menu is like this:

<moi:PushButton style="padding:0" onclick="moi.ui.showMenu( 'ObjectSnapMenu.htm', this, 1, 0 );">Snap to</moi:PushButton>

The 3rd parameter to moi.ui.showMenu() is an integer:
0 = put menu below button
1 = put menu on right side of button
2 = put menu above button
3 = put menu on left side of button

And the 4th parameter is another integer:
0 = expand menu to right (when menu above or below button) or down (when menu on left or right side of button).
1 = expand menu to left or up

- Michael