If you compile the following code as an executable and run it from a dir that also contains the muiroyale.hwp file, the listview entry is shown correctly. But if I remove the plugin from the progdir and have it on libs:hollywood/ then the listview entry is shown as question marks.
This happens at least on MorphOS and OS4... any idea why?
Code: Select all
@OPTIONS {Encoding = #ENCODING_ISO8859_1}
@DISPLAY {hidden=True}
@REQUIRE "muiroyale"
s$ = "öäéèçà"
Function p_EventFunc(msg)
Switch msg.Class
Case "Window":
Switch msg.Attribute
Case "CloseRequest":
End
EndSwitch
EndSwitch
EndFunction
gui$ = [[<?xml version="1.0" encoding="iso-8859-1"?>
<application base="HELLOWORLD">
<window title="Example GUI" muiid="MAIN" notify="closerequest">
<vgroup>
<listview id="lv">
<column/>
</listview>
</vgroup>
</window>
</application>]]
mui.CreateGUI(gui$)
mui.DoMethod("lv", "Insert", "Bottom", s$)
InstallEventHandler({MUIRoyale = p_EventFunc})
Repeat
WaitEvent
Forever