Skip to content

UpdateWindowMenu

Claude edited this page Oct 26, 2026 · 5 revisions

UpdateWindowMenu

Command Index · BlitzPlus · Windows

UpdateWindowMenu window%

Works in: BlitzPlus

Redraws the menu bar of a window after you changed its menus. It only has to be called after commands like CreateMenu, CheckMenu or SetMenuText, and one call after a bunch of changes is enough.

Graphics 320, 240, 32, 2
win  = CreateWindow("Menu", 20, 20, 240, 140, Desktop(), 15)
file = CreateMenu("File", 0, WindowMenu(win))
CreateMenu "Quit", 1, file
UpdateWindowMenu win
Repeat
	e = WaitEvent()
Until e = $803 Or (e = $1001 And EventData() = 1)
Parameter Type Default Description
window Int required Handle of a window.

Differences and known gaps:

  • Menus here change the screen right away, so this command only asks for a redraw.

Related commands

Command Index · BlitzPlus · Windows

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally