def _getGenericMenu(self, caption, MenuID=None): """ Returns a dMenu instance with the passed caption. This is used by the append(), insert(), and prepend() functions. """ return dMenu.dMenu(self, Caption=caption, MenuID=MenuID)
def getMenu(self): """ Get the navigation menu for this form. Every form maintains an internal menu of actions appropriate to itself. For instance, a dForm with a primary bizobj will maintain a menu with 'requery', 'save', 'next', etc. choices. This function sets up the internal menu, which can optionally be inserted into the mainForm's menu bar during SetFocus. """ menu = dMenu.dMenu() return menu