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.

Topics - Palace

Pages: [1]
Help requests / Menu item clicks
« on: 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-
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

Pages: [1]