## BarStyle : setFreezeTopSide

## BarStyle : setFreezeRightSide

## BarStyle : setFreezeBottomSide

## BarStyle : setFreezeLeftSide

Indicates if the free space to insert a page or add a DFrame includes or not the XXX side of the Bar (XXX: Top, Right, Bottom or Left).

Demo

file: setFreezeXXXSide.html

Run the example
See the source code

Example

var dFrame = new DFrame([10, 10, 90, 90], 'Test for setFreezeXXXSide', dFrameStyle)

var barStyleYellow = new BarStyle(barStyle)

barStyleYellow.setBackgroundColor('yellow')

barStyleYellow.setPos([10, 10, 30, 30])

barStyleYellow.setFreezeTopSide(true)

barStyleYellow.setFreezeLeftSide(true)

var barYellow = dFrame.addBar(null, null, barStyleYellow)

var dFrame2 = new DFrame([0, 0, 90, 90], 'Added on dFrame', dFrameStyle, dFrame)

dFrame2.show()

Although the left and top corners of dFrame2 are set to 0 the DFrame do not recover barYellow.

### Syntaxes

MenuStyle.setFreezeXXXSide([flag])

### Parameters

flag

If true (default) freezes the area …

setFreezeTopSide: From the bottom of the Bar to the top of the DFrame

setFreezeRightSide: From the left of the Bar to the right of the DFrame

setFreezeBottomSide: From the top of the Bar to the bottom of the DFrame

setFreezeLeftSide: From the right of the Bar to the left of the DFrame