Creating a custom menu with a custom button in Corel X8

Here is presented a way to make a custom button on a custom menu allocating a macro name in X5

How is possible to do that in X8. Should we follow the same logic?