position.button.html

<HTML>

<HEAD>

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

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

<script language="Javascript">

//Global

var baseAll

//Style

DFrameAPI.include('dFrame/styles/colors/styleColors.js')

DFrameAPI.onLoad = function(){

var dFrame = new DFrame(['*', '*', 90, 90], 'position.button.html', dFrameStyle, baseAll)

bar = dFrame.addBar([10, 10, 80, 80])

//If not values of included style ('BUTTON' => content for a floating Bar) will resize Bar

bar.setAutoWidth('')

bar.setAutoHeight('')

bar.addButton('Button dims: [10, 10]', '', [10, 10])

bar.addButton('Button dims: [\'*\', 10]', '', ['*', 10])

bar.addButton('No dims for Button', '')

bar.addButton('Button dims: [\'*\', \'*\']', '', ['*', '*'])

bar.addButton('Button dims: [80, \'*\']', '', [80, '*'])

dFrame.show()

}

</script>

</HEAD>

</HTML>