Setting and getting Button.HiChar

Discuss GUI programming with the MUI Royale plugin here
Post Reply
User avatar
jPV
Posts: 603
Joined: Sat Mar 26, 2016 10:44 am
Location: RNO
Contact:

Setting and getting Button.HiChar

Post 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 
User avatar
airsoftsoftwair
Posts: 5433
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Setting and getting Button.HiChar

Post 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.
Post Reply