Thank you for your answer and thank you for TGUI !!
menu->connectMenuItem("File","Exit",[&]{ window.close(); }); works fine but
when i first posted this i was decifering the doc ( connectMenuItem() [1/2] )
and then i looked at ( connectMenuItem() [2/2] ) and left the correct answer in the post.
If anyone has more advices, please share !
menu->connectMenuItem("File","Exit",[&]{ window.close(); }); works fine but
when i first posted this i was decifering the doc ( connectMenuItem() [1/2] )
and then i looked at ( connectMenuItem() [2/2] ) and left the correct answer in the post.
If anyone has more advices, please share !