setMenuIndent.html

<HTML>

<HEAD>

<script>var dFrameFilePath = '../../../../../dFrame/'</script>

<script language="Javascript" src="../../../../../dFrame/dFrame/lib/DFrameAPI.js"></script>

<script language="Javascript">

//Style

DFrameAPI.include('dFrame/styles/background/styleBackground.js')

DFrameAPI.onLoad = function(){

var dFrame = new DFrame([0, 0, 100, 100], 'setMenuIndent.html', dFrameStyle)

var sM = new Array()

sM[0] = ['Button', 'sub1-item1', '']

sM[1] = ['Button', 'sub1-item2', '']

var M = new Array()

M[0] = ['Button', 'item1', sM]

M[1] = ['Button', 'item2', '']

dFrame.addMenu(M, ['0', '80'])

menuStyle.setMenuIndent(20)

dFrame.addMenu(M, ['0', '200'], menuStyle)

menuStyle.setMenuIndent(-20)

dFrame.addMenu(M, ['0', '320'], menuStyle)

dFrame.show()

}

</script>

</HEAD>

</HTML>