setLabelHAlign.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/notes/styleNotes.js')

DFrameAPI.onLoad = function(){

var dFrame = new DFrame([2, 2, 98, 98], 'setLabelHAlign.html', dFrameStyle)

buttonStyle.setBordersNormal('ThreeD')

buttonStyle.setLabelLeftMargin(10)

buttonStyle.setLabelRightMargin(20)

buttonStyle.setLabelHAlign('LEFT')

dFrame.addButton('label', 'alert("CLick !")', buttonStyle)

buttonStyle.setLabelHAlign('RIGHT')

dFrame.addButton('label', 'alert("CLick !")', buttonStyle)

buttonStyle.setLabelHAlign('CENTER')

dFrame.addButton('label', 'alert("CLick !")', buttonStyle)

buttonStyle.setWidth(150)

buttonStyle.setLabelHAlign('LEFT')

dFrame.addButton('label', 'alert("CLick !")', buttonStyle)

buttonStyle.setLabelHAlign('RIGHT')

dFrame.addButton('label', 'alert("CLick !")', buttonStyle)

buttonStyle.setLabelHAlign('CENTER')

dFrame.addButton('label', 'alert("CLick !")', buttonStyle)

dFrame.show()

}

</script>

</HEAD>

</HTML>