Page 1 of 1

Setting and getting Button.HiChar

Posted: Mon Apr 24, 2017 5:50 pm
by jPV
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 

Re: Setting and getting Button.HiChar

Posted: Thu Apr 27, 2017 4:47 pm
by airsoftsoftwair
Oh right, but it's just a wrapper error. HiChar has an applicability of I, not ISG. Fixed now in documentation and MUI Royale.