ExportID doesn't work on Menuitem

Discuss GUI programming with the MUI Royale plugin here
Post Reply
User avatar
jPV
Posts: 734
Joined: Sat Mar 26, 2016 10:44 am
Location: RNO
Contact:

ExportID doesn't work on Menuitem

Post 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
User avatar
airsoftsoftwair
Posts: 5830
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: ExportID doesn't work on Menuitem

Post by airsoftsoftwair »

Looks like this is unsupported currently but I can add it for a future release.
Post Reply