func_maxgui_menus_windowmenu.rst 656 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. .. _func_maxgui_menus_windowmenu:
  2. ==========
  3. WindowMenu
  4. ==========
  5. WindowMenu -
  6. Description
  7. ===========
  8. .. code-block:: blitzmax
  9. WindowMenu:TGadget( window:TGadget )
  10. Get a window's main-menu handle.
  11. Required when a menu is to be added to a window using #CreateMenu. This function
  12. should @not be used for sub-menus under any circumstance.
  13. It should also be mentioned that when creating popup menus this function isn't required - instead
  14. #Null should be passed as the parent of the root popup menu.
  15. See Also: #CreateMenu and #UpdateWindowMenu
  16. Parameters
  17. ==========
  18. Return Values
  19. =============
  20. Nothing.
  21. Examples
  22. ========
  23. See Also
  24. ========