Button margins
In this section we refer to the „margins" as being the spaces between the button label and the ends of the button. For stretchy buttons (those with the „Adjust button widths to labels" option switched on) this is determined by the master button from which you create the NavBar. By adjusting the margins on the master button, you set the margins for the other buttons in the bar, which are based on it.
The easiest way to change the margin on the first button is as follows:
- Open the NavBar dialog
- Turn off the Adjust button widths to labels option, so buttons don't stretch as label text is changed.
- Change the label on the master button (the first button unless you have multiple button designs in your NavBar – see later section). Choose any dummy label text which is the appropriate length to give you the margins you want on the master button.
- Turn the Adjust button widths to labels option back on again. All buttons get the same margins you set for the master button.
- Set the master button label text back to what it should be.
Original bar
Bar with a modified smaller margin
Bar with a modified larger margin
If your NavBar has different designs for the start/end (see below for how to achieve that), then the start and end designs have their own margins that can be controlled separately.
Copyright © Xara