is it possible to put the tab strip menu items at the center of the menu rectangle?
Yes, you can center the tab strips. Select the tab strip in designer, move the arrows on the left or right of the selected tab strip until the selection box just fits the tabs. Once you have done this, click on Alignment and then select Center Horizontally. This can also be accomplished by pressing ALT+H. To keep the tabs centered on the client view, you can right click the tabs, select Layout, then Anchored, then select where you would like it to be anchored.
Hope this helps.
i populate dynamically the items in runtime, so i can’t know how many item there will be.
they are aligned always on the left. if i have few items, i have the whole menu unbalanced on the left. this is not the best to have…
I’ve added this feature request to our ticket system. There’s not really any work-around other than what’s been suggested.
You would have to use scripting to make this work.
You would need to use
as an example, this was done with a button, and I think it could be made to work with the tab strip.
rc = event.source.parent [i]# reference to the component to print[/i] w = rc.width button = event.source.parent.getComponent('Tab Strip') system.gui.resizeComponent(button, 900, 45) newX = (w/2)-(button.width/2) newY = button.y system.gui.moveComponent(button, newX, newY)
yes, that’s what i had in mind, but before scripting i wanted to be sure there was no other way
thank you very much.