Setting and getting Button.HiChar
Posted: Mon Apr 24, 2017 5:50 pm
Button.HiChar seems to work in init, but I can't get or change it later. Trying under MorphOS.
Code: Select all
@DISPLAY {Hidden=True}
Function p_MUI(msg)
If msg.attribute = "CloseRequest" Then End
EndFunction
mui.CreateGUI([[
<?xml version="1.0" encoding="iso-8859-1"?>
<application id="app">
<window title="Test program" notify="closerequest">
<vgroup>
<button id="butt" hichar="e">Hello World!</button>
</vgroup>
</window>
</application>
]])
InstallEventHandler({MUIRoyale = p_MUI})
DebugPrint(mui.Get("butt","hichar")) ; Doesn't print anything
mui.Set("butt","hichar","o") ; Doesn't change the HiChar
Repeat
WaitEvent
Forever