haxeui / haxeui-hxwidgets

The hxWidgets backend of the HaxeUI framework -
http://haxeui.org
MIT License
23 stars 7 forks source link

Menu click events not working #22

Closed nesrak1 closed 5 years ago

nesrak1 commented 5 years ago

MenuItem's onClick doesn't get called in wxwidgets. I was able to get events working in openfl though.

ianharrigan commented 5 years ago

I think the event you are looking for is MenuEvent.MENU_SELECTED - ive just added an example here: https://github.com/haxeui/component-examples/tree/master/menus

note: i found a few little issues with menus so have fixed them and released a new haxelib, so you many need to pull again.

Cheers, Ian

nesrak1 commented 5 years ago

Works now with the latest update, thanks.