Skip to content

WindowMenu

Narta Xaymar Dirks edited this page Nov 1, 2026 · 6 revisions
BlitzPlus

WindowMenu

WindowMenu:Int32 window:Int32
Parameter Mode Type Default Description
window In Int32 required Handle of a window.

Returns: The handle of the root menu. It is the same on every call.

Description

Gives the root of the menu tree of a window, which exists from the start but is empty. Menus made with this as their parent are the titles in the menu bar. The window needs flag 4 to show room for it.

Examples

Graphics 320, 240, 32, 2
win = CreateWindow("Menus", 20, 20, 260, 150, Desktop(), 15)
file = CreateMenu("File", 0, WindowMenu(win))
CreateMenu "Open", 1, file
CreateMenu "Exit", 2, file
edit = CreateMenu("Edit", 0, WindowMenu(win))
CreateMenu "Copy", 3, edit
UpdateWindowMenu win
Repeat
Until WaitEvent() = $803

Media

WindowMenu

Related Commands

ActivateWindow, ActiveWindow, CreateWindow, UpdateWindowMenu, WindowMaximized, WindowMinimized, WindowScale 〔BlitzLLVM〕, WindowScaling 〔BlitzLLVM〕

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally