Page 1 of 1

ExportID doesn't work on Menuitem

Posted: Thu Jun 19, 2025 3:39 pm
by jPV
I'm trying to set ExportID for a Menuitem, but it complains: Unknown attribute "exportid"

Am I doing something wrong? Testing on MorphOS. Documentation tells "Menuitem.Selected is ex/imported."

Code: Select all

@REQUIRE "muiroyale"
g = [[<?xml version="1.0" encoding="iso-8859-1"?>
<application id="app" base="HELLOWORLD">
	<menustrip id="mymenustrip">
		<menu title="Project">
			<item type="toggle" exportid="MENU">Set me</item>
		</menu>
	</menustrip>
	<window title="Example GUI" menustrip="mymenustrip" muiid="MAIN" notify="closerequest">
		<vgroup>
			<string exportid="STRI" contents="bla"/>
		</vgroup>
	</window>
</application>]]

@DISPLAY {Hidden = True}

Function p_EventFunc()
	End
EndFunction

mui.CreateGUI(g)

InstallEventHandler({MUIRoyale = p_EventFunc})

mui.DoMethod("app", "Save", "RAM:test.cfg")

Repeat
	WaitEvent
Forever

Re: ExportID doesn't work on Menuitem

Posted: Sun Jun 22, 2025 5:24 pm
by airsoftsoftwair
Looks like this is unsupported currently but I can add it for a future release.