Add a custom selection box

Can I add a custom selection box on the toolbar? I have added a custom selection box, but the drop-down box cannot be displayed. I have tried to modify the style, but it has not been effective.