addText.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/colors/styleColors.js')

DFrameAPI.onLoad = function(){

dFrame = new DFrame([5, 5, 95, 95], 'addText.html', dFrameStyle)

var text = 'In the second Bar the Text is set with a dimension<br>and thus is not used in the computation of the size of the Bar.'

text += '<br>The dark blue color is set using the \'Normal\' state attribute'

var text = dFrame.addText(text, [50,50])

text.setBgNormal('#18417B')

var bar = dFrame.addBar()

bar.setPos([20, 25, '*','*'])

bar.setStartFrom('TOP')

var text = bar.addText('Some text')

text.setBgNormal('#18417B')

bar.addButton('Button', 'alert("CLick !")')

var bar = dFrame.addBar()

bar.setPos([50, 25, '*','*'])

bar.setStartFrom('TOP')

var text = bar.addText('Some text', [50,50])

text.setBgNormal('#18417B')

bar.addButton('Button', 'alert("CLick !")')

dFrame.show()

}

</script>

</HEAD>

</HTML>