Changing text justification depending on array index.

I was just wondering if anyone could give any advice on how to do this.

I have three widgets: the menu widget, the button line widget and then button widget itself.

My button widget fills the button line widget with buttons, based on the array of text names which is altered in the menu widget.

These text names are then changed depending on which sub menu I have selected.

I’m essentially trying to get my index pos. 0 to justify to the right and my index pos. 2 to justify to the left, with position 1 being a break between the two options.

This is quite difficult to explain, I can post any snips that anyone asks for.

Here’s a picture of what it’s currently doing.

Basically I want the break to be in a fixed position in the middle. I’ve tried just using an image set between two different widgets (rather than just the one using an index), but I can’t get one to justify left and the other to justify right without having to create two seperate button lines and buttons. I’m sure there’s a better way to do it than that.

Some additional pictures to help: