You could always do it the easy way and create a dialog with those three controls and then insert that dialog n times.
Take a look here:
link1[
^], and
link2[
^].
If that approach could work for you you can always look for more help searching for "child dialog".
Hope this helps you. :thumbsup: