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