Exchange Interface and MUI Royale Project

Discuss GUI programming with the MUI Royale plugin here
Post Reply
NathanH
Posts: 107
Joined: Sun Jul 05, 2015 1:29 am
Location: Caldwell, Idaho

Exchange Interface and MUI Royale Project

Post by NathanH »

Hi,

I just noticed that Hollywood v. 8.0 by default compiles projects as a Commodity (cool). Hide interface from Exchange probably hides Hollywood displays just fine. In my MUI Royale project, however, the Hollywood display is hidden from the start and Hide Interface from Exchange does nothing. Is there a way to hide the MUI Royale window when a user clicks Hide interface from Exchange? Thanks for the help.

NathanH
User avatar
jPV
Posts: 600
Joined: Sat Mar 26, 2016 10:44 am
Location: RNO
Contact:

Re: Exchange Interface and MUI Royale Project

Post by jPV »

I've made it like this:

Code: Select all

Function p_MUI_Hack()
    If mui.Get("app", "iconified") Then SetTimeout(2, p_MUI_Hack, 500)
EndFunction

Function p_Iconify(msg)
    If msg.action="HideWindow"
        mui.Set("app", "iconified", True)
        p_MUI_Hack()
    Else
        mui.Set("app", "iconified", False)
    EndIf
EndFunction

InstallEventHandler({ShowWindow=p_Iconify, HideWindow=p_Iconify})
The p_MUI_Hack() shouldn't basically be needed, but for some reason I can't uniconify the program on MorphOS if I've iconified it with Exchange and try to uniconify it by double clicking the app icon. Uniconifying with the Exchange works, but for this special case I made this little "hack", because it seems to work if there are some events going on in the program :)
NathanH
Posts: 107
Joined: Sun Jul 05, 2015 1:29 am
Location: Caldwell, Idaho

Re: Exchange Interface and MUI Royale Project

Post by NathanH »

Thanks very much! I'll give it a try.

NathanH
NathanH
Posts: 107
Joined: Sun Jul 05, 2015 1:29 am
Location: Caldwell, Idaho

Re: Exchange Interface and MUI Royale Project

Post by NathanH »

It worked just great, thanks!

NathanH
User avatar
airsoftsoftwair
Posts: 5425
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Exchange Interface and MUI Royale Project

Post by airsoftsoftwair »

jPV wrote: Sun Sep 01, 2019 3:14 pm but for some reason I can't uniconify the program on MorphOS if I've iconified it with Exchange and try to uniconify it by double clicking the app icon. Uniconifying with the Exchange works, but for this special case I made this little "hack", because it seems to work if there are some events going on in the program :)
Hmm, sounds like something for a bug report :)
User avatar
jPV
Posts: 600
Joined: Sat Mar 26, 2016 10:44 am
Location: RNO
Contact:

Re: Exchange Interface and MUI Royale Project

Post by jPV »

Yea... now that I try to refresh my memory, I thought that this might get fixed by the "MUI refresh" fix, because work-around is similar, but I don't think that's the case afterall... so I'll make a report soon when I still remember it :)
Post Reply