Skip to content

SetMenuText

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

SetMenuText

SetMenuText:Void menu:Int32, text:String
Parameter Mode Type Default Description
menu In Int32 required Handle of a menu or item.
text In String required The new text.

Description

Changes the text of a menu title or item.

Differences

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

Examples

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

Related Commands

CheckMenu, CreateMenu, DisableMenu, EnableMenu, MenuChecked, MenuEnabled, MenuText, UncheckMenu

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally