Automatic new line


I create buttons in a loop in a BeginHoriontal. How can I wrap the buttons to go automaticaly in new line.

Thanks !

Nevermind, I just set a max number of elements for a line and each end line, I create a new beginHorizontal with the next buttons.