Skip to content

SetMenuText

Claude edited this page Oct 26, 2026 · 5 revisions

SetMenuText

Command Index · BlitzPlus · Menus

SetMenuText menu%, text$

Works in: BlitzPlus

Changes the text of a menu title or item.

Graphics 320, 240, 32, 2
win  = CreateWindow("Text", 10, 10, 300, 150, Desktop(), 15)
file = CreateMenu("File", 0, WindowMenu(win))
item = CreateMenu("Start", 1, file)
UpdateWindowMenu win
Repeat
	e = WaitEvent()
	If e = $1001 Then SetMenuText item, "Stop" : UpdateWindowMenu win
Until e = $803
Parameter Type Default Description
menu Int required Handle of a menu or item.
text String required The new text.

Differences and known gaps:

  • The text can be read back with MenuText here. The original cannot read it.

Related commands

Command Index · BlitzPlus · Menus

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally