Adobe Dreamweaver API Reference CS5 Manual de usuario Pagina 177

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 533
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 176
172
DREAMWEAVER API REFERENCE
Workspace
Last updated 8/27/2013
Toolbar functions
The following JavaScript functions let you get and set the visibility of toolbars and toolbar labels, obtain the labels of
toolbar items in the current window, position toolbars, and obtain toolbar IDs. For more information on creating or
modifying toolbars, see “Toolbars” in Extending Dreamweaver Help.
dom.getShowToolbarIconLabels()
Availability
Dreamweaver MX.
Description
This function determines whether labels for buttons are visible in the current document window. Dreamweaver always
shows labels for non-button controls, if the labels are defined.
Arguments
None.
Returns
A Boolean value: true if labels for buttons are visible in the current document window; false otherwise.
Example
The following example makes labels for buttons visible:
var dom = dw.getDocumentDom();
if (dom.getShowToolbarIconLabels() == false)
{
dom.setShowToolbarIconLabels(true);
}
dom.getToolbarIdArray()
Availability
Dreamweaver MX.
Description
This function returns an array of the IDs of all the toolbars in the application. You can use
dom.getToolbarIdArray() to turn off all toolbars so you can reposition them and make only a specific set visible.
Arguments
None.
Returns
An array of all toolbar IDs.
Example
The following example stores the array of toolbar IDs in the tb_ids variable:
Vista de pagina 176
1 2 ... 172 173 174 175 176 177 178 179 180 181 182 ... 532 533

Comentarios a estos manuales

Sin comentarios