Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Palace

#1
Help requests / Re: Menu item clicks
15 September 2020, 03:27:25
Thanks Texus. Thought that might be the case. Still getting my head around the code, but it did seem different.

Cheers Peter
#2
Help requests / Menu item clicks
14 September 2020, 16:15:17
Hi There

Just started playing around with 0.9 and as others have mentioned there is no connect. I realise it is still a work in progress but it's looking great so far. I see for menu items there is OnMenuItemClick. I can give it a lambda function OK but struggling to work out how to reference a specific item. I did see in the code the connectMenuItem and can use something like this that works fine-
Code (cpp) Select
menu->connectMenuItem({ "File","Exit" }, [&](){ ExitClicked(); });

Is is OK to use this rather than OnMenuItemClick as that function doesn't seem to take the { "File","Exit" } as an option for an item.

Regards Peter