Setting and getting Button.HiChar

Discuss GUI programming with the MUI Royale plugin here

Setting and getting Button.HiChar

Postby jPV » 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
User avatar
jPV
 
Posts: 48
Joined: Sat Mar 26, 2016 11:44 am
Location: RNO

Re: Setting and getting Button.HiChar

Postby airsoftsoftwair » Thu Apr 27, 2017 4:47 pm

Oh right, but it's just a wrapper error. HiChar has an applicability of I, not ISG. Fixed now in documentation and MUI Royale.
User avatar
airsoftsoftwair
 
Posts: 2025
Joined: Fri Feb 12, 2010 3:33 pm
Location: Germany


Return to MUI Royale

Who is online

Users browsing this forum: No registered users and 1 guest

cron