## BarStyle : setStartFrom

## BarStyle : setItemsHAlign

## BarStyle : setItemsVAlign

BarStyle.setStartFrom: Indicate where does the alignment of Buttons of the Bar start from.

BarStyle.setItemsHAlign and setItemsHAlign: Indicate the horizontal and vertical alignments of Buttons in the Bar.

Demo

file: setAutoWidthForBars.html

Run the example
See the source code

### Syntaxes

BarStyle.setStartFrom(startString)

BarStyle.setItemsHAlign(alignString)

BarStyle.setItemsVAlign(alignString)

### Parameters

startString

The string indicating where does the Buttons start from:

'TOP' or 'BOTTOM'. Determines a vertical Bar.

'RIGHT' or 'LEFT' Determines a horizontal Bar.

Default: Empty string, but evaluated at each creation:

'LEFT' for a Bar set to the 'TOP' of the DFrame

'RIGHT' for a Bar set to the 'BOTTOM' of the DFrame

'TOP' for a Bar set to the 'LEFT' of the DFrame

'BOTTOM' for a Bar set to the 'RIGHT' of the DFrame

alignString

The string indicating where the alignment of Buttons:

setItemsHAlign: 'CENTER' (default), 'LEFT' or 'RIGHT' : Used only for vertical Bars.

setItemsVAlign: 'CENTER' (default), 'TOP' or 'BOTTOM' : Used only for horizontal Bars.

### Comment

If the startString method determines a vertical Bar (if set to 'TOP' or 'BOTTOM' the horizontal alignment will be made with the itemsHAlign value ('CENTER', 'LEFT' or 'RIGHT' ).

If the startString method determines a horizontal Bar (if set to 'LEFT' or 'RIGHT') the vertical alignment will be made with the itemsHAlign value ('CENTER', 'TOP' or 'BOTTOM' ).

Caution: As long you do not set a value to startFrom its default value (empty string) will be evaluated at each Bar creation, depending on the pos parameter. If you set a value this value risk not to fit with the pos value of the Bar.