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