Contex Submenu - no events

Discuss GUI programming with the RapaGUI plugin here
Post Reply
User avatar
msu
Posts: 58
Joined: Mon Jun 13, 2016 11:36 am
Location: Sinzig/Germany

Contex Submenu - no events

Post 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?

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

Re: Contex Submenu - no events

Post 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).

User avatar
msu
Posts: 58
Joined: Mon Jun 13, 2016 11:36 am
Location: Sinzig/Germany

Re: Contex Submenu - no events

Post by msu »

Thank you.

Post Reply