Set packDirection property.
The pack direction of the menubar. It determines how menuitems are arranged in the menubar.
Set packDirection property.