Getting ActiveObject bugs with Popfile

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

Getting ActiveObject bugs with Popfile

Post by jPV »

If I have activated an Popfile gadget with the mouse, getting ActiveObject returns a garbage string. Funny thing is that if I activate the object with the Tab key, then it returns the correct string, but activating with the mouse causes the issue.

Here's an example code where activating and typing into the upper string gadget works and returns "test1", but activating and typing into the lower popfile gadget returns random characters.

I haven't looked yet if this happens with other kind of string based (pop?) objects too...

I can reproduce the issue on both MorphOS and OS4, so it's more unlikely that it'd be a MUI implementation issue... maybe it's a MUI Royale issue?

Code: Select all

@DISPLAY {hidden=True}
@REQUIRE "muiroyale"

Function p_EventFunc(msg)
	ConsolePrint(mui.Get("win", "activeobject"))
	Switch msg.Class
	Case "Window":
		Switch msg.Attribute
		Case "CloseRequest":
			End
		EndSwitch
	EndSwitch
EndFunction

gui$ = [[<?xml version="1.0" encoding="iso-8859-1"?>
<application base="HELLOWORLD">
	<window id="win" title="Example GUI" notify="closerequest">
		<vgroup id="grp">
			<string id="test1" notify="contents" cyclechain="true"/>
			<popfile id="test2" notify="contents" cyclechain="true"/>
		</vgroup>
	</window>
</application>]]

mui.CreateGUI(gui$)

InstallEventHandler({MUIRoyale = p_EventFunc})

Repeat
	WaitEvent
Forever
User avatar
airsoftsoftwair
Posts: 5830
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Getting ActiveObject bugs with Popfile

Post by airsoftsoftwair »

Ok, I'll examine this. Thanks for the report!
Post Reply