Toolbar creation?

Firstly Hi all, (my first post)

I am a bit of a scripting n00b and as i generally just like to dictate to our tools programmer to do it all, but since i have to learn some for myself i was hoping somone could assist me with an issue ive been having trying to generate a toolbar in max.

Currently i am creating a rollout and registering that a dialogbar using (cui.dialogbar) I then dock that to the left of the screen to form a new toobar with some icons on it.

However these kind of dialog bars dont seem to ahve the same functionality as the toolbar you create using the options in max (ie a macroscript) Are these toolbars generated using a different function? If so does anyone know what function max calls to create this type of toolbar?

Thanks