Page 1 of 1

Context menu - more bugs?

Posted: Thu Jun 04, 2020 8:59 am
by msu
Windows x64:
The code works. :D

AmigaOS 3.9:
The context menu did not trigger any events. :(

AROS x86:
The first time you right-click, Hollywood exits. The workbench is reset. :(

Code: Select all

@REQUIRE "RapaGUI"
@DISPLAY 1, {Width = 320, Height = 100}

GUI$=[[<application id="app">
<menu title="Test" id="contex">
	<item id="Cut">Cut</item>
	<item id="Copy">Copy</item>
	<item id="Paste">Paste</item>
</menu>
<window id="Main" Title="Test">
	<vgroup>
		<treeview id="tree" contextmenu="contex" notify="active">
			<column/>
			<node name="test1" id="test1">
			</node>
			<node name="test2" id="test2">
			</node>
		</treeview>
		<hollywood display="1" fixwidth="true" fixheight="true"/>
	</vgroup>
</window>
</application>]]

moai.CreateApp(GUI$)

Function p_EventFunc(msg)
	NPrint(msg.id)
EndFunction

InstallEventHandler({RapaGUI=p_EventFunc})

Repeat
	WaitEvent
Forever

Re: Context menu - more bugs?

Posted: Fri Jun 05, 2020 10:52 pm
by airsoftsoftwair
Yes, this looks like a bug. Thanks for reporting!

Re: Context menu - more bugs?

Posted: Tue Jul 14, 2020 7:49 pm
by airsoftsoftwair

Code: Select all

- Fix [Amiga]: Context menus didn't work when used with Treeview widgets

Re: Context menu - more bugs?

Posted: Thu Jul 16, 2020 10:18 pm
by airsoftsoftwair
Unsurprisingly, MUI Royale had the same issue. Fixed now.

Code: Select all

- Fix: Context menus didn't work when used on Listtree widgets