Create menu toolbar dynamically

Hello

Is there a way to create menu toolbar dynamically?

Thanks!!