Code organization

The management of a dFrame comprises 3 phases that it is important to well differentiate:

Instantiation.

Instantiation consists in creating an object using the DFrame class:

var dFrame = new  DFrame(parameters);   

Decoration.

Decoration consists in adding graphic objects, Bars, Buttons and Menus, to the DFrame:

var bar =  dFrame.addBar(parameters);   

bar.addButton(parameters);  

bar.addButtonImage(parameters);  

bar.addMenu(parameters);  

...

Creation.

Creation creates a graphic representation of the object. Using one of the 3 following methods does it:

dFrame.setURL(parameters);   

or

dFrame.show(parameter);   

or

dFrame.alert(parameter);   

The methods of decoration cannot be used any more on an object that was created.

Closing.

The closing of a dFrame is carried out by the closeFrame method. This method closes the DFrame and withdraws the taskBar of the buttons that are associated to the DFrame. This method is generally associated with a button: 

bar.addButton(' Close', ' thisDFrame.closeFrame() ')