Code: Select all
@DISPLAY {Hidden=True}
Function p_MUI(msg)
DebugPrint(msg.class, msg.attribute) ; Can't see any notifications when trying to double start.
If msg.attribute = "CloseRequest" Then End
EndFunction
mui.CreateGUI([[
<?xml version="1.0" encoding="iso-8859-1"?>
<application base="DSTEST" id="app" singletask="true" notify="doublestart">
<window title="Test program" notify="closerequest">
<vgroup>
<button>Hello World!</button>
</vgroup>
</window>
</application>
]])
InstallEventHandler({MUIRoyale = p_MUI})
Repeat
WaitEvent
Forever