Help Needed about dynamic width in menu-column

i have a problem for fixing a dynamic width for a menu column.
i.e. if user enter long tab name code should adjust the width according to long tab name.