Page 1 of 1

Contex Submenu - no events

Posted: Sat May 23, 2020 3:30 pm
by msu
I just have the problem that context submenus do not trigger an event (Windows 10 x64).
Only cut, copy and paste trigger an event.

Code: Select all

@REQUIRE "RapaGUI"

GUI$=[[<application id="app">
<menu title="Test" id="test">
	<item id="Cut">Cut</item>
	<item id="Copy">Copy</item>
	<item id="Paste">Paste</item>
	<menu title="Sub">
		<item id="a">a</item>
		<item id="b">b</item>
 		<item id="c">c</item>
	</menu>
</menu>
<window id="Main" Title="Test">
	<vgroup>
		<hollywood display="1" fixwidth="true" fixheight="true"  contextmenu="test"/>
	</vgroup>
</window>
</application>]]

moai.CreateApp(GUI$)

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

InstallEventHandler({RapaGUI=p_EventFunc})

Repeat
	WaitEvent
Forever

What am I doing wrong?

Re: Contex Submenu - no events

Posted: Sun May 24, 2020 11:20 am
by airsoftsoftwair
msu wrote: Sat May 23, 2020 3:30 pm What am I doing wrong?
Nothing, it's a bug. In my current WIP version of RapaGUI it's working, though, so I guess it's fixed already (but the fix is not public yet).

Re: Contex Submenu - no events

Posted: Sun May 24, 2020 11:49 am
by msu
Thank you.