A title Bar (Bar object) is a Bar wich can be on the top or on the top and the bottom of DFrames, Bars or Menus
addTitleBar: Add a title Bar on the top of the object.
Example
var bar = dFrame.addTitleBar()
Demo
file: addTaskBarAndMenu.html
Run the
example
See the source code
object.addTitleBar(title, barModel)
title
String. The caption of
the title Bar.
barStyle
The style that will be used to draw the title Bar. Set barStyle to null to use the default title Bar Style properties of the styles of the title Bar's parent.
This method only acts on the Style of the object so that, when the object will be created, a title Bar is added to it.
Thus this method does not return any value.
The addTitleBar method has the same effect as the setTitleBar Style method used on objects:
bar.addTitleBar(barModel)
is the same as
barStyle.setDefaultTitleBar(barModel)
barStyle.setTitleBar(true)
var bar = dFrame.addBar(barStyle)
or
var bar = dFrame.addBar(barStyle)
bar.setDefaultTitleBar(barModel)
bar.setTitleBar(true)
But keep in mind that the addTitleBar is an object method as setTitleBar is a Style method that can also apply to objects.