Skip to content

UpdateWindowMenu

Narta Xaymar Dirks edited this page Oct 28, 2026 · 5 revisions
BlitzPlus

UpdateWindowMenu

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

Description

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.

Differences

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

Examples

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)

Related Commands

ActivateWindow, ActiveWindow, CreateWindow, MaximizeWindow, MinimizeWindow, RestoreWindow, SetMinWindowSize, WindowMenu

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally