BarStyle: setButton

BarStyle: setButtonImage

BarStyle: setButtons

BarStyle.resetButtons

Those 3 methods allow to set Buttons definitions in Style in order the Buttons are automatically created with the Bar

Demo

file: styleWindows.js, last line
See the source code

Syntaxes and Parameters

Refer to the corresponding methods in the Reference documentation: addButton, addButtonImage and addButtons methods.

BarStyle.resetButtons: no parameter

Comment

The main use of those methods is to allow the creation of Buttons in title Bars: The definition of those Buttons can be stored in the title BarStyle so that the Buttons are created with the title Bar. However developers can use those methods in all BarStyles definitions.

Main uses are close or help Buttons images on title Bars.

The resetButtons delete all Buttons definitions. As all Style methods it has no effect as soon the Bar is created.