MenuBar()

语法

MenuBar()
概要
Creates a separator bar in the current menu.

参数

无.

返回值

无.

示例

  If OpenWindow(0, 200, 200, 200, 100, "MenuBar Example")
    If CreateMenu(0, WindowID(0))  ; here the menu creating starts....
      MenuTitle("Project")
        MenuItem(1, "Open")
        MenuBar()                  ; here the separator bar will be inserted
        MenuItem(4, "Close")
    EndIf
    Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
  EndIf

参阅

MenuTitle(), MenuItem(), OpenSubMenu(), CreateMenu(), CreatePopupMenu()

已支持操作系统

所有

<- IsMenu() - Menu Index - MenuHeight() ->